ef core2.2 mysql migration issues

Some time ago, when the encounter is ef core mysql migration, bool type is automatically yingsheweishort problem, you need to manually correct it
today, when tested, have a problem after migrating MySQL data tables to modify.

Question follows
 System.NotImplementedException: The method or operation is not implemented.

   at Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator.Generate(RenameColumnOperation operation, IModel model, MigrationCommandListBuilder builder)
   at Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator.Generate(MigrationOperation operation, IModel model, MigrationCommandListBuilder builder)
   at Microsoft.EntityFrameworkCore.Migrations.MigrationsSqlGenerator.Generate(IReadOnlyList`1 operations, IModel model)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.GenerateUpSql(Migration migration)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_1.<.ctor>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
The method or operation is not implemented.

 Then search for a meal and found the current mysql modify the migration does have BUG, but new tables and new fields are not a problem.
All, modify the properties of the time, only the table before they can rebuild

or replace polem package that can be achieved migrate

https://bugs.mysql.com/bug.php?id=82981
https://stackoverflow.com/questions / 47952803 / net-core-2-0 -database-first-approach-scaffold-dbcontext-of-mysql-db

Guess you like

Origin www.cnblogs.com/willhuo/p/11697496.html