Instantly share code, notes, and snippets.

@pysco68 /1 Install.ps1 Secret
Last active Sep 21, 2015

Embed
What would you like to do?
Fix MySQL Connector/NET Bug #74726 / EF migrations fail on long foreign keys
Install-Package Pysco68.MySQL.FixedMigrationGenerator
internal sealed class Configuration : DbMigrationsConfiguration<MyContext>
{
public Configuration()
{
SetSqlGenerator("MySql.Data.MySqlClient", new FixedMySqlMigrationSqlGenerator());
/* OR */
this.SetFixedMySQLMigrationsGenerator();
}
/* snip */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment