Click here to Skip to main content
15,887,476 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new to using Entity Framework and am using Entity Framework 5 on SQLite - Brice’s Blog[^] as a starting point. I came across it as a link on another Code Project page (SQLite CRUD Operation Using Entity Framework 7[^] ).

The only variations that I have made is to use a Windows Form application instead of a Console and add missing ‘using’ statements. I am using Visual Studio 2015 Community and have tried with framemwork 4 and 4.6.1.

All seems to go okay up to Start Coding section. When I run the app after adding the first block of code I get the following error:

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SQLite'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See Entity Framework 6 (EF6) Providers[^] for more information.

The Microsoft article does not help me any.

Can anyone help me understand what’s wrong?

What I have tried:

Tried with framework 4 and 4.6.1. Tried as a Console and WinForms app.
Posted
Updated 19-Aug-16 23:23pm
v2

As is stated in Entity Framework 5 on SQLite - Brice’s Blog[^], before you start coding, you have to install Entity Framework Controller and Provider. You have to download them from NuGet package[^].

Additional information, you'll get from here: using SQLite with Entity Framework 6 and the Repository Pattern | Software Engineering[^]
 
Share this answer
 
Comments
Kevin Derrick Murphy 17-Aug-16 12:01pm    
The article does mention about installing the Entity Framework Controller through NuGet and I followed those steps. I do not know if that is all I need to install though. As yet I have not had a chance to look at the last link you provided.
Unfortunately I still cannot EF to work with SQLite.

According to Get Entity Framework it needs Microsoft Web Developer Tools or Microsoft SQL Server Data Tools which do seem to be in Visual Studio Community Edition.

I tried
C#
CodeFirst with SQLite using Entity Framework 7

and get a different error than before.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900