Skip to content

Instantly share code, notes, and snippets.

@pysco68
Last active September 21, 2015 18:16
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