.NET Framework 4.0을 대상으로 System.Data.SQLite로 엔티티 프레임 워크를 설정하려고했습니다. Visual Studio 2017을 사용하고 있으므로 디자인 타임 구성 요소가 없다는 것을 알고 있습니다. 다음 항목을,EdmGen.exe는 1.0.94.0보다 큰 System.Data.SQLite 버전과 작동하지 않습니다.
하나의 폴더에 포함 : 나는 그러나 나는 위의 링크의 지침을 다음에서 알아 낸 요약됩니다 https://liiw.blogspot.co.uk/2014/12/sqlite-entity-framework-database-first.html
:
나는까지 모든 것을 수동 설정이 가이드에 무슨 일이 있었 :EdmGen.exe
EdmGen.exe.config
012 (
System.Data.SQLite.dll
System.Data.SQLite.EF6.dll
System.Data.SQLite.Linq.dll
TestDatabase.sqlite
을 포함 3,516,x86
및x64
폴더.gen.bat
C:\Windows\Microsoft.NET\Framework\v4.0.30319
에서 복사) 각각 몇 가지 테스트 테이블을 포함하는 자신의 각각의
SQLite.Interop.dll
다음 EdmGen.exe.config
의 내용은 다음
<configuration>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite"/>
<add name="SQLite Data Provider" invariant="System.Data.SQLite"
description=".Net Framework Data Provider for SQLite"
type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
</DbProviderFactories>
</system.data>
</configuration>
다음 gen.bat
의 내용은 다음
EdmGen.exe /mode:fullgeneration /c:"Data Source=TestDatabase.sqlite" /provider:System.Data.SQLite /entitycontainer:TestDatabase /project:TestDatabase /language:CSharp
가 gen.bat
실행하기와 (또는 상기 명령) System.Data.SQLite
바이너리가 System.Data.SQLite의 최신 버전입니다.
error 7001: The provider returned schema mapping information that is not valid.
Schema specified is not valid. Errors:
StoreSchemaDefinition(2,65) : error 0175: The specified store provider cannot be found in the configuration, or is not valid.
그것은 System.Data.SQLite 어셈블리의 버전 1.0.94.0으로 작동합니다) 1.0.94.0 이상 rsion 다음과 같은 오류가 발생합니다.
오류를 검색하면 발생하는 문제에 대한 답변이 표시되지 않았습니다. 내가 여기서 잘못하고있는 것은 무엇입니까?