I'm using dotConnect for SQLite 5.1.26 with Entity Framework 6.0.1 Code-First
I've tried to apply Code-based Provider Registration Example to my code like that
Code: Select all
[DbConfigurationType(typeof(Devart.Data.SQLite.Entity.SQLiteEntityProviderServicesConfiguration))]
public class MyContext : DbContext
{
// ...
}It's strange that EF is still looking for 'System.Data.SqlClient'..No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file
I've tried second described approach
Code: Select all
static MyContext()
{
DbConfiguration.SetConfiguration(new Devart.Data.SQLite.Entity.SQLiteEntityProviderServicesConfiguration());
}So where I'm mistaking?
Here is my sample code:
http://yadi.sk/d/U69J3nEjCfCAa
INFO:
SQLite Code First
Entity Framework 6.0.1
VS 2010 SP1 (.NET 4.0)
dotConnect for SQLite 5.1.26
Windows 7 SP1 32bit
UPDATE With today's release 5.1.36 the result is the same..