欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

EF 数据库连接MySql

程序员文章站 2022-05-04 11:49:14
nuget安装 Microsoft.EntityFrameworkCore.Tools Pomelo.EntityFrameworkCore.MySql 如果mysql安装了会产生异常(不支持core3.1): MySql.Data.EntityFrameworkCore Method 'get_I ......

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.