VS2015 +ef6 Connect MySQL database build entity
Installed software: VS2015 XAMPP Control Panel (MySQL server) SQLyog (Mysql client)
When used :
Using the EF Designer
At this moment, found two forced, I do not have MySQL???? (Well, it's someone else's, the machine has this interface without MySQL)
Well, here's the point:
To download the installation:
1:mysql-for-visualstudio-1.2.6.msi
http://dev.mysql.com/downloads/file/?id=460645
2:mysql-connector-net-6.9.8.msi
http://dev.mysql.com/downloads/connector/net/
3: Install EF with NuGet
My side is already installed (version select more than 6.1), so Show "update" and "Uninstall", if you installed, continue to see the following
is to find a random one not installed, there will be "install" button,
4: Install Mysql.Data.Entity with NuGet
Same as installing EF
After clicking Install, one will appear as follows:
After performing the above steps and looking at the Web. config file, the following code is automatically added
OK, now all of our steps are done. It's best to reboot under VS (Don't know if it's necessary, anyway I rebooted), then recompile
After that, you can generate the MySQL corresponding entity by starting the steps.
Note: If there is a problem with the two MSI files that were initially installed, then when the entity is generated, after this step (e.g.), there will be a flashback problem, unable to generate the entity (I have experienced this problem)
In this step, there is no suspense.
From for notes (Wiz)
List of attachments
VS2015 +EF6 Connect MySQL Database build entity