Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exception: The method or operation is not implemented on database update #40

Open
szymongaertig opened this issue Dec 19, 2016 · 3 comments

Comments

@szymongaertig
Copy link

Should migrations work properly on EF 1.1 ?

I use:

"SapientGuardian.EntityFrameworkCore.MySql" : "7.1.15"
"Microsoft.EntityFrameworkCore": "1.1.0",

after invoking update db command:

dotnet ef database update --context DbContextClassName

if get:

System.NotImplementedException: The method or operation is not implemented.
   at MySQL.Data.Entity.Migrations.MySQLMigrationsSqlGenerator.Generate(EnsureSchemaOperation 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.
@SapientGuardian
Copy link
Owner

It could be that your migration is trying to do something that is not yet supported. Does it work for you with EF 1.0?

@zhangxuan1107
Copy link

how to do for this bug?

@SapientGuardian
Copy link
Owner

This library is no longer maintained. There are many alternatives which are far more complete and better tested, such as Pomelo.EntityFrameworkCore.MySql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants