Code First + Migrations Sample available?

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for SQLite
Post Reply
[email protected]
Posts: 4
Joined: Mon 18 Jan 2016 09:24

Code First + Migrations Sample available?

Post by [email protected] » Mon 18 Jan 2016 09:54

Hi,

I'm currently evaluating the dotConnect for SQLite and having a hard time to get the SQLite Migration feature up and running. I'm relatively new to Entity Framework so I can't guarantee if my problems are relating to misuse of EF.

Are there any Code First + Migration samples available for dotConnect for SQLite?
In installed samples I couln't find any examples that cover these topics.


[email protected]
Posts: 4
Joined: Mon 18 Jan 2016 09:24

Re: Code First + Migrations Sample available?

Post by [email protected] » Tue 19 Jan 2016 15:37

I've found SQLite+Migration sample here -> you have to scroll down to find the download links for the code .zip files

- EF 6
http://blog.devart.com/entity-framework ... Migrations

- EF 4
http://blog.devart.com/entity-framework ... irstsample

I had to change some minor things in the app.confif to select the correct version of the provider:

<provider invariantName="Devart.Data.SQLite" type="Devart.Data.SQLite.Entity.SQLiteEntityProviderServices, Devart.Data.SQLite.Entity, Version=5.3.563.6, Culture=neutral, PublicKeyToken=09af7300eec23701"/>

So far the inital creation of the SQLite DB worked out fine.
Will continue the create individual migration packages the next few days.
Will post the results here this thread.

Post Reply