I am trying to create a simple project to explore how Entity framework 6 code first with sqlite db provider works, but when I complite my app I get the error:
There is a good article for this issue: http://hintdesk.com/sqlite-with-entity-framework-code-first-and-migration/
After reading it my consolusion is: "No, please do not use sqlite if you want EF + code first". Use SQL CE instead even though it's deprecating.
Firstly remove the below line from the providers section :
<provider invariantName="System.Data.SQLite" type="System.Data.SQLite.SQLiteProviderServices, System.Data.SQLite.Linq, Version=1.0.91.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139"/>
And add below line instead of that :
<provider invariantName="System.Data.SQLite" type="System.Data.SQLite.SQLiteProviderServices, System.Data.SQLite.Linq" />
For more info : Problems using Entity Framework 6 and SQLite