NETCore EF 数据库连接正确nuget和MySql错误异常

MSSql正确nuget包

Microsoft.EntityFrameworkCore.Tools
Microsoft.EntityFrameworkCore.SqlServer

MySql正确nuget包

Microsoft.EntityFrameworkCore.Tools
Pomelo.EntityFrameworkCore.MySql

mysql安装nuget包运行异常(不支持core3.1):

MySql.Data.EntityFrameworkCore

Method 'get_Info' in type 'MySql.Data.EntityFrameworkCore.Infraestructure.MySQLOptionsExtension' from assembly 'MySql.Data.EntityFrameworkCore, Version=8.0.19.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d' does not have an implementation.

你可能感兴趣的:(NETCore EF 数据库连接正确nuget和MySql错误异常)