-
-
Save pysco68/236857751de37ed971f0 to your computer and use it in GitHub Desktop.
Fix MySQL Connector/NET Bug #74726 / EF migrations fail on long foreign keys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install-Package Pysco68.MySQL.FixedMigrationGenerator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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