Provider Manifest Token for EF and CodeFirst

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
felixbrueckner
Posts: 5
Joined: Fri 06 Dec 2013 18:20

Provider Manifest Token for EF and CodeFirst

Post by felixbrueckner » Fri 06 Dec 2013 18:27

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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Provider Manifest Token for EF and CodeFirst

Post by Shalex » Tue 10 Dec 2013 09:24

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.

felixbrueckner
Posts: 5
Joined: Fri 06 Dec 2013 18:20

Re: Provider Manifest Token for EF and CodeFirst

Post by felixbrueckner » Tue 17 Dec 2013 13:48

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

Post Reply