EF 数据库连接MySql

nuget安装

Microsoft.EntityFrameworkCore.Tools
Pomelo.EntityFrameworkCore.MySql

如果mysql安装了会产生异常(不支持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.

猜你喜欢

转载自www.cnblogs.com/Cailf/p/12790084.html