Now write the program because of the issue of copyright, with less SQL Server. Our company began to use MySQL very vigorously. (because it is free, and there is no piracy).
We all know that EF is a good ORM framework for Microsoft, and EF-linked SQL Server is very simple to build a solid model. So what about the link to MySQL?
1, first download the installation of MySQL vs plug-in (version please download the latest version)
Mysql-for-visualstudio-1.2.3.msi
The purpose of the plugin is to create a solid model (right-click model-> New Item--Data->ado. NET Entity Data Model), there is no problem with the MySQL option.
2. Download and install the program for. NET connection
Mysql-connector-net-6.9.4.msi
The purpose of this plugin is to: If this is not installed, it will not be able to properly display the. EDMX model.
3. Restart vs
Open the sequential interface that establishes the data model:
Choose Mysql Database to do it.
EF link MySQL build data model