我有以下配置文件:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite" />
<remove invariant="System.Data.SQLite.EF6" />
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".Net Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6, Version=1.0.93.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" />
</DbProviderFactories>
</system.data>
<connectionStrings>
<add name="catalogoSQLiteADO" connectionString="Data Source=D:\Alvaro\proyectos\Catalogo\RepositorioBaseDatosBase\catalogo.sqlite3;foreign keys=True;" />
<add name="catalogoEntitiesSQLiteEF5" connectionString="metadata=res://*/catalogoSQLiteEF5.csdl|res://*/catalogoSQLiteEF5.ssdl|res://*/catalogoSQLiteEF5.msl;provider=System.Data.SQLite;provider connection string="data source=D:\Alvaro\proyectos\catalogo\RepositorioBaseDatosBase\catalogo.sqlite3"" providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<providers>
<provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6, Version=1.0.93.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" />
</providers>
</entityFramework>
</configuration>
我想将EF6与SQLite一起使用,但是当我尝试执行该应用程序时,我收到以下错误:
The entity framework provider type 'System.Data.SQLite.EF6.SQLiteProiderServices, System.Datal.SQLite.EF, Cesion=1.0.93.0, CUlture=neutral, PublicKeyToken=db937bc2d44ff139' 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 the assembly is available to the running application.
我在项目中有对dll的引用。
感谢。