Skip to content Skip to sidebar Skip to footer

How To Enable Migration In Sqlite Using Ef

I have stuck in problem. I am writing a code for windows desktop application and I have to use sqlite as a database. I have successfully installed system.data.sqlite and entity fra

Solution 1:

There are some implementations of migration for SQLite.

https://github.com/bubibubi/db2ef6migrations is based on the new EF6 migration interface but it has some restrictions. You can download it from Nuget searching for System.Data.SQLite.EF6.Migrations

Solution 2:

Unlike MS SQL Server, as default, the free Sqlite driver from system.data.sqlitedoesn’t support Migration.So you can’t create a new database from code.You have to manually create it.

For that you can use SQLite Manager add-on for Firefox.

Here is the link : SQLite Manager

Or you can use SQL Server Compact/SQLite Toolbox where @ErikEJ suggested below.

Post a Comment for "How To Enable Migration In Sqlite Using Ef"