Enable Entity Framework migrations in Mono

All of the Entity Framework Migrations commands are just thin wrappers over an underlying API. To enable migrations, simply create a new class that derives from DbMigrationsConfiguration<TContext> in your project. For Add-Migration use code similar to the following. var config = new MyMigrationsConfiguration(); var scaffolder = new MigrationScaffolder(config); var migration = scaffolder.Scaffold(“Migration1”); File.WriteAllText(migration.MigrationId + “.cs”, … Read more