我一直在尝试为我的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
到目前为止,我已经尝试过:
So far I've tried:
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.
您可以在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)!