LAST CHANGE
Bug fixed.
Chris Comment:
2015-11-07, and now you can work without editing files or doing strange things. Use the MySQL installer for Windows and including support for Visual Studio and the latest version of Connector.Net. Be sure to update after installation, and you will receive the latest information about each (1.2.5 and 6.9.8). Use NuGet to set EntityFramework, MySql.Data, and MySql.Data.Entity. Finally, we built and enjoyed reverse engineering code technical competency by adding the Ento.Net Ado.Net model.
Original answer
I found an error in MySQL.
Below is a link explaining the desktop.
On your computer where VS 2013 is installed, the VS plug-in (1.1.3 GA) and Connector / Network
Close all VS instances before completing the steps.
In the Windows Explorer window, go to this path or where you installed the Connection / Network binaries
C: \ Program Files (x86) \ MySQL \ MySQL Connector Net 6.8.3 \ Assemblies \ v4.5 \
Copy the file:
MySql.Data.Entity.EF6.dll
And paste it into this folder
C: \ Program Files (x86) \ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ PrivateAssemblies
If you ask him to overwrite, do it.
You will need administrator rights to overwrite the file.
Then you can try again to create a script for your model.
It is important that you have version 1.1.3 of the VS plugin installed, as this is a workaround for this.
Unfortunately, this does not work for me, so I abandoned the structure of entity 5 until I fix it.
EDIT
Finally, it now works.
I had to add the following 3 DLLs:
- C: \ Program Files (x86) \ MySQL \ MySQL Connector Net 6.8.3 \ Assemblies \ v4.5 \ MySql.Data.dll
- C: \ Program Files (x86) \ MySQL \ MySQL Connector Net 6.8.3 \ Assemblies \ v4.5 \ MySql.Data.Entity.EF6.dll
- C: \ Program Files (x86) \ MySQL \ MySQL Connector Net 6.8.3 \ Assemblies \ v4.5 \ MySql.Web.dll
Then I changed the EntityFramework part in the web configuration to:
<entityFramework codeConfigurationType="MySql.Data.Entity.MySqlEFConfiguration, MySql.Data.Entity.EF6"> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> <providers> <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6" /> </providers> </entityFramework>
Do not forget REBUILD , and you can create a framework 6 entity model with MySQL.
IMPORTANT
Make sure you install MySQL for Visual Studio 1.1.3 and the MySQL.net 6.8.3 Connector