您当前的位置:首页 > .Net家族

.NetCore3.1使用MySql

作者:无涯 时间:2020-01-07 16:00:19 阅读数:1060 人阅读

      今天写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.


undefined

 

 

解决方案:

        1、卸载MySql.Data,MySql.Data.EntityFrameworkCore

        2、添加Pomelo.EntityFrameworkCore.MySql

;

本站所有文章、数据、图片均来自互联网,一切版权均归源网站或源作者所有。

如果侵犯了你的权益请来信告知我们删除。邮箱:2780053831@qq.com

标签: .net core3.1 mysql
四川旅游网为您推荐-飞猪旅游

猜你喜欢