使用 Pomelo EF net-core 3.0 创建迁移时出错,数据库:MySql
Error creating migrations with Pomelo EF net-core 3.0, database: MySql
我正在使用 EF 和 Pomelo.EntityFrameworkCore.MySql 创建连接到 MySql 的 Web 服务。项目编译正常,但是在使用"Add-Migration newVersion"命令时出现错误:
“程序集‘Pomelo.
EntityFrameworkCore.MySql, Version = 2.2.0.0, Culture = neutral, PublicKeyToken = null '没有实现。 “
不知道是什么原因(版本不匹配或设置不正确),我是 net-core 的新手,如果您能提供帮助,谢谢。代码在 Github:
https://github.com/vcalazas/project19092019
bugs picture
您似乎正在创建 dotnet core v3 项目,但 Pomelo 驱动程序似乎以 v2.2 为目标。尝试 'downgrading' 你的项目到 2.2。
我正在使用 EF 和 Pomelo.EntityFrameworkCore.MySql 创建连接到 MySql 的 Web 服务。项目编译正常,但是在使用"Add-Migration newVersion"命令时出现错误:
“程序集‘Pomelo. EntityFrameworkCore.MySql, Version = 2.2.0.0, Culture = neutral, PublicKeyToken = null '没有实现。 “
不知道是什么原因(版本不匹配或设置不正确),我是 net-core 的新手,如果您能提供帮助,谢谢。代码在 Github:
https://github.com/vcalazas/project19092019
bugs picture
您似乎正在创建 dotnet core v3 项目,但 Pomelo 驱动程序似乎以 v2.2 为目标。尝试 'downgrading' 你的项目到 2.2。