ef6连接mysql无法错误,无法通过Visual Studio 2013中的EF6连接到MySQL

I am trying to connect to MYSQL Database using EF6 in visual studio , later i was using SQL and it worked fine afterwards i shifted to Mysql then i install such this required components :

MySQL for Visual Studio 1.1.1

MySQL Connector/Net 6.8.

The error says :

4d24270c7c8a723fb08fb353e7ae0590.png

Your project references the latest version of Entity Framework; however, an Entity Framework database provider compatible with this version could not be found for you data connection. Exit this wizard, install a compatible provider, and rebuild your project before performing this action

i tried possible online solutions e.g reinstall this components but it did not work ,

Otherwise this i tried to add such this code to my App.config :

but it face the same destiny, or event clear all entity tags from my app.config .

also i tried to install later version of entity such :

Install-Package EntityFramework -Version 5.0.0

but it get : Install failed. Rolling back...

Install-Package : Already referencing a newer version of 'EntityFramework'.

can anyone help me to identify what should i do then ?

解决方案

This worked for me WITHOUT reinstalling the Visual Studio or anything what so ever.

installed latest MySQL visual studio plugin and MySQL connector net

removed the entityFramework Tag in App.config or Web.config and all its child tags.

replaced it with the following code:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值