简体   繁体   English

实体框架6.0错误与Mysql Connector 6.8.3.0

[英]Entity Framework 6.0 Error With Mysql Connector 6.8.3.0

In one of my project i was using entity framework 5.0 with MySql 5.6 With Mysql Connector Version 6.7.4.0. 在我的一个项目中,我使用的是带有MySql 5.6和Mysql Connector 6.7.4.0的实体框架5.0。

Previously it was working fine but due to some reason i have to update the entity framework version from 5.0 to 6.0 and for which i have to update the mysql connector version from 6.7.4.0 to 6.8.3.0 which is the recommended mysql connector to use with entity framework 6.x. 以前它工作正常,但是由于某些原因,我必须将实体框架版本从5.0更新到6.0,为此,我必须将mysql连接器版本从6.7.4.0更新到6.8.3.0,这是推荐与之配合使用的mysql连接器实体框架6.x。

Due to which now i am not able to update my .edmx file. 由于这个原因,我现在无法更新我的.edmx文件。 while updating it is giving error saying your project reference the latest version of entity framework; 更新时出现错误,表示您的项目引用了最新版本的实体框架; however an entity framework database provider compatible with this version could not be found for your data connection. 但是,找不到与该版本兼容的实体框架数据库提供程序用于您的数据连接。

Following is the screen shot of the error. 以下是错误的屏幕截图。

在此处输入图片说明

EF 6 & EF 5 seem to be not compatible. EF 6和EF 5似乎不兼容。 Try this (point 3) . 试试这个(点3) Or you could remove your *.edmx file from your project and generate a new one from the database instead. 或者,您可以从项目中删除* .edmx文件,然后从数据库中生成一个新文件。

I've had problems with it as wel, I had to use a provider tag in the enitityframework tag in my app.conf 我遇到了问题,例如,我必须在app.conf的enitityframework标签中使用provider标签。

see the link below for more information and follow those steps: http://forums.mysql.com/read.php?174,601264,601264 有关更多信息,请参见下面的链接,并按照以下步骤操作: http : //forums.mysql.com/read.php?174,601264,601264

look at this one to get a better sence of the code. 查看此代码以获得更好的代码含义。 http://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.html http://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM