????????????????Entity Framework for Sqlite?????????????Щ???????????????
???????????????????????????????Sqlite??Sql Server??Sql Server LocalDB??Sql Server Compact??
?????????demo???????????NuGet????????

????EFDemo.MultipleDB.UI??????EFDemo.MutipleDB?????
????1. ????????1

????The Entity Framework provider type 'System.Data.SQLite.EF6.SQLiteProviderServices?? System.Data.SQLite.EF6' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SQLite.EF6' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
????????????????Sqlite????dll???????????????????????????EFDemo.MultipleDB.UI?μ????????????????????Щdll??????????

?????????????Щ??????????????
????2. ????????2
????????????????????????????
????The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices?? EntityFramework.SqlServer' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.
????????????????????????Σ????????????????????????????
????/// <summary>
????/// ???provider????????????????
????/// ???????????????????T???
????/// </summary>
????private static void FixProvidersNotAutoLoadProblem()
????{
????var _ = typeof(System.Data.SQLite.EF6.SQLiteProviderFactory);
????var __ = typeof(System.Data.Entity.SqlServer.SqlProviderServices);
????var ___ = typeof(System.Data.Entity.SqlServerCompact.SqlCeProviderServices);
????}