今天写demo是用.net Core3.1 MySql,和以前一样添加引用MySql.Data,MySql.Data.EntityFrameworkCore 。在做数据库迁移报错,错误信息如下:
Method 'get_Info' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.Data.EntityFrameworkCore, Version=8.0.18.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation.
解决方案:
1、卸载MySql.Data,MySql.Data.EntityFrameworkCore
2、添加Pomelo.EntityFrameworkCore.MySql
;