编程技术网

关注微信公众号,定时推送前沿、专业、深度的编程技术资料。

 找回密码
 立即注册

QQ登录

只需一步,快速开始

极客时间

带有实体框架6的MySQL:MySQL with Entity Framework 6

montie mysql 2022-5-11 10:22 5人围观

腾讯云服务器
带有实体框架6的MySQL的处理方法

我一直在尝试为我的MySQL服务器添加EF模型,但没有机会,因为它要么在为我的项目选择Entity Framework版本之前就关闭,要么给出您的项目引用了Entity的最新版本.但是,找不到与您的数据连接兼容的Framework实体数据库提供程序"错误,并且我无法为其选择EF 6.x.

I've been trying to add an EF Model for my MySQL server but couldn't get a chance as it would either close right before choosing the Entity Framework version for my project or give "Your project references the latest version of Entity Framework, howerver, an entity database provider compatible with this version could not be found for your data connection" error and I'm unable to choose the EF 6.x for it.

版本:Entity Framework 6.2.0,Mysql.Data 8.11.00,Mysql.Data.Entity 6.10.7.0,Connector/Net 8.11.0.0

Versions: Entity Framework 6.2.0, Mysql.Data 8.11.00, Mysql.Data.Entity 6.10.7.0, Connector/Net 8.11.0.0

这是第一次事件的gif.

这是第二起事件的屏幕截图.

到目前为止,我已经尝试过:

So far I've tried:

  1. 从NuGet软件包管理器中安装Mysql.Data.Entity,并根据不幸的是,这些都不起作用.有人告诉我以前有一个与此确切错误相关的错误,但是他们说此问题在更新后已得到修复,如果我从NuGet安装软件包,则可以无错误地使用它.我不知道这是否是一个错误.预先感谢.

    Unfortunately, none of these worked. I've been told that there was a bug related to this exact error before but they said it's been fixed after the update and I'd be able to use it bug-free if I install the packages from NuGet. I don't know if it's a bug though. Thanks in advance.

    问题解答

    确保已安装以下应用程序.

    Make sure following applications are installed.

    1. 用于.NET的MySQL连接器下载(可能需要c ++运行时> = 2015,请检查mysql网站)
    2. 用于Visual Studio的MySQL 下载
    1. MySQL Connector for .NET Download (might require c++ runtime >=2015, check the mysql site)
    2. MySQL for visual studio Download

    您可以在Windows上使用MySQL来管理您的MySQL产品下载

    You can mange your MySQL products using MySQL for windows Download

    我还没有尝试使用新的8.0连接器,但是可以确认6.10.xx版本在某些PC上存在一些Nuget软件包错误.(会抱怨缺少运行时dll.6.9.11可以正常运行)

    I haven't tried with the new 8.0 connectors but can confirm the 6.10.xx versions had some Nuget package errors on some PC. (Would complain about missing runtime dlls.. 6.9.11 would work perfectly)

    这篇关于带有实体框架6的MySQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程技术网(www.editcode.net)!

腾讯云服务器 阿里云服务器
关注微信
^