MySQL Forums
Forum List  »  MySQL for Visual Studio

Unable to use Entity Framework 6.2 with mySql on vs2017
Posted by: Fabio Simoni
Date: November 29, 2017 03:47PM

I spent a few hours and i'm unable to find the right mySQL provider for Entity Framework 6.2 in Visual Studio 2017.

Here is my error when tri to use EF : "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".


I spent a few hours and i'm unable to find the right mySQL provider for Entity Framework 6.2 in Visual Studio 2017.

Here is my error when tri to use EF :

enter image description here

I read severals guide, and no succes :(

Here is my App.config :

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<entityFramework>
<providers>
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" />
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" />
</providers>
</entityFramework>
</configuration>

Here is my packages.config :

<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="EntityFramework" version="6.2.0" targetFramework="net461" />
<package id="HtmlAgilityPack" version="1.6.5" targetFramework="net461" />
<package id="MahApps.Metro" version="1.5.0" targetFramework="net461" />
<package id="MySql.Data" version="6.10.4" targetFramework="net461" />
<package id="MySql.Data.Entity" version="6.10.4" targetFramework="net461" />
<package id="System.Buffers" version="4.4.0" targetFramework="net461" />
<package id="System.Threading.Tasks.Extensions" version="4.4.0" targetFramework="net461" />
</packages>

Here is the content of mySQL Installation :

MySQL for Visual Studio 1.2.7 X86
Connector ODBC 5.3.9 X64
Connection Net 6.9.10 Unknow

Any idea please ?

Thanks a lot :)

Options: ReplyQuote


Subject
Views
Written By
Posted
Unable to use Entity Framework 6.2 with mySql on vs2017
71
November 29, 2017 03:47PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.