This project has moved. For the latest updates, please go here.
Project Description
Migrations for Entity Framework 6 SQLite provider

- Relationships are not enforced with constraints
- There can be only one identity column per table and will be created as integer and primary key (other primary keys will be ignored)
- ...

How to use it
- Download the library (using NuGet)
- Create a migration configuration
- Setup the migration configuration (usually during first context creation)


    class Context : DbContext
        static Context()
            Database.SetInitializer(new MigrateDatabaseToLatestVersion<Context, ContextMigrationConfiguration>(true));

        // DbSets

    internal sealed class ContextMigrationConfiguration : DbMigrationsConfiguration<Context>
        public ContextMigrationConfiguration()
            AutomaticMigrationsEnabled = true;
            AutomaticMigrationDataLossAllowed = true;
            SetSqlGenerator("System.Data.SQLite", new SQLiteMigrationSqlGenerator());

Last edited Sep 1, 2016 at 4:55 PM by bubibubi, version 4