Page 1 of 1

Provider Manifest Token for EF and CodeFirst

Posted: Fri 06 Dec 2013 18:27
by felixbrueckner
In our application, we create the Database Model for the DbContext like this at runtime:

var Builder = new DbModelBuilder();
...
_DatabaseModel = Builder.Build( new DbProviderInfo( "Devart.Data.SQLite", "SQLite" ) ).Compile();
...

What is the correct Provider Manifest Token for this? With "SQLite", we get an exception.

This code works quite well for the SQL Server and SQL Compact providers from MS (with their corresponding Provider Manifest Tokens).

Thanks and regards
Felix

Re: Provider Manifest Token for EF and CodeFirst

Posted: Tue 10 Dec 2013 09:24
by Shalex
felixbrueckner wrote: var Builder = new DbModelBuilder();
var _DatabaseModel = Builder.Build(new DbProviderInfo("Devart.Data.SQLite", "SQLite")).Compile();
This code works in our environment with dotConnect for SQLite v5.1.45 installed on the workstation. Please send us a small complete test project so that we can reproduce the issue in our environment.

Re: Provider Manifest Token for EF and CodeFirst

Posted: Tue 17 Dec 2013 13:48
by felixbrueckner
It works now. The reason for this was not the supplied code. In the configuration of our DbModel, we used the IsRowVersion()-Method which is not supported by SQLite.

Thanks
Felix