Unable to update EntityFramework models from MySQL database in Visual Studio 2015 RC

c# entity-framework-6 mysql.data mysql-connector visual-studio-2015

Question

My organization upgraded from Visual Studio 2013 to Visual Studio 2015 RC a couple months ago, and we only just now attempted to update some of our existing "db-first" EntityFramework models from our MySQL database. When doing so, we received the following error.

An exception of type 'System.ArgumentException' occurred while attempting to update from the database. The exception message is: 'Unable to convert runtime connection string to its design-time equivalent. The libraries required to enable Visual Studio to communicate with the database for design purposes (DDEX provider) are not installed for provider 'MySql.Data.MySqlClient'.

A quick SO search for this error produced this result from November of 2013 (specifically in reference to VS 2013)...

Apparently MySql and Visual Studio 2013 don't work together yet.

Here is a link on the MySql forums: http://forums.mysql.com/read.php?174,594798,600466#msg-600466

You'll probably need to wait for the next release of the MySql connector.

Does that mean this is likely a comparable issue, and we just have to wait it out until a new MySql.Data client is available that is compatible with VS 2015? Or is it possible that some other cause is to blame (perhaps a bug in VS 2015 RC)?

We're on the latest stable versions of Entity Framework (6.1.3), MySql.Data (6.9.6) and MySql.Data.Entity (6.9.6).

Especially curious to hear if anyone else has stumbled across this issue with VS 2015 RC in particular.

1
9
5/23/2017 11:33:15 AM

Accepted Answer

What worked for me was to update the visual studio plugin, available here: http://dev.mysql.com/downloads/windows/visualstudio/

19
6/30/2016 9:08:28 PM

Popular Answer

Could you please update your VS 2015 from RC to RTM, update the nuget packages by running the following command:

update-package

This will get all latest stable nuget package in VS 2015.

Let me know if this fix your issue.



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow