VS2015 +EF6 Connect MySQL Database build entity

Source: Internet
Author: User
Tags mysql client

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

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.