Can't Create Entity Data Model - using MySql and EF6 entity-framework mysql mysql-connector visual-studio-2013


In Visual Studio 2013, I'm attempting to include an edmx Entity model into my C#/Web Project. The fact that the file is not produced is my issue.

I follow these procedures:

  1. What's the item's name?
  2. Select "EF Designer from database."
  3. Select the connection from the drop-down menu (localhost) that has already been tested to connect to a MySQL database with success.
  4. The checkbox next to "Save connection settings in webc.config as" is selected.
  5. I press "Next," the window vanishes, and I return to the code window.

EDMX files are not produced. (although it works with SQL Server, but not for MySQL)

I haveEntity Framework 6.1.2 installed, MySql.Data , MySql.Data.Entities , MySql.Data.Entity , MySql.Web — everything is installed.

Earlier than attempting to add an entity model file, I also recreated the project.

I've set up the most recent MySQL package with the most recent.NET connector .

Running on Windows 7 is Visual Studio 2013.

Do you have any solutions to this?

1/30/2015 5:40:16 PM

Accepted Answer

I overcame this problem by taking the actions listed below:

  1. Uninstall MySql.Data.Entities from Nuget by entering the following command in the Package Manager Console:Uninstall-Package MySql.Data.Entities

  2. Add the most recent project referenceMySql.Data.Entity.EF6.dll from the installation path for your MySql connector at:C:\Program Files (x86)\MySQL\MySQL Connector Net 6.9.8\Assemblies\v4.5

5/24/2016 5:50:58 PM

Popular Answer


Related Questions


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