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
Provider Manifest Token for EF and CodeFirst
-
felixbrueckner
- Posts: 5
- Joined: Fri 06 Dec 2013 18:20
Re: Provider Manifest Token for EF and CodeFirst
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 wrote: var Builder = new DbModelBuilder();
var _DatabaseModel = Builder.Build(new DbProviderInfo("Devart.Data.SQLite", "SQLite")).Compile();
-
felixbrueckner
- Posts: 5
- Joined: Fri 06 Dec 2013 18:20
Re: Provider Manifest Token for EF and CodeFirst
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
Thanks
Felix