EF link MySQL build data model

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.