错误提示:System.TypeLoadException
HResult=0x80131522
Message=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.
Source=MySql.Data.EntityFrameworkCore
解决问题的方法:网上的方法是安装Pomelo.EntityFrameworkCore.MySql。因为MySql.Data.EntityFrameworkCore 8.0.18不支持Core3.1。同时安装了两个,卸载MySql.Data.EntityFrameworkCore 8.0.18就可以了。