Skip to content

Instantly share code, notes, and snippets.

@pysco68 pysco68/Enable migrations.ps1 Secret
Last active Aug 29, 2015

What would you like to do?
Enable migrations and add the migrations code generator
# run this in the Package manager console
internal sealed class Configuration : DbMigrationsConfiguration<Application.Model.ApplicationContext>
public Configuration()
AutomaticMigrationsEnabled = false;
// add this
SetSqlGenerator("MySql.Data.MySqlClient", new MySql.Data.Entity.MySqlMigrationSqlGenerator());
/* ... */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.