错误提示: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就可以了。
本文解决了一个关于MySql.EntityFrameworkCore的问题,具体为版本8.0.18在.NET Core 3.1中使用时出现的System.TypeLoadException错误。错误信息显示,从MySql.Data.EntityFrameworkCore装配的类型'MySQLOptionsExtension'中的方法'get_Info'没有实现。解决方案是安装Pomelo.EntityFrameworkCore.MySql,并卸载MySql.Data.EntityFrameworkCore8.0.18。
891

被折叠的 条评论
为什么被折叠?



