public MyProduccionConfiguration() { AutomaticMigrationsEnabled = false; AutomaticMigrationDataLossAllowed = true; SetSqlGenerator("MySql.Data.MySqlClient", new MySql.Data.Entity.MySqlMigrationSqlGenerator()); CodeGenerator = new MySql.Data.Entity.MySqlMigrationCodeGenerator(); }
//<Ractor.DataContext> public MySqlMigrationsConfiguration() { this.AutomaticMigrationsEnabled = true; this.AutomaticMigrationDataLossAllowed = true; // NB!!! set to false on live data SetSqlGenerator("MySql.Data.MySqlClient", new MySqlMigrationSqlGenerator()); // This will add our MySQLClient as SQL Generator CodeGenerator = new MySqlMigrationCodeGenerator(); }