VS2013 EF6 MySQL (your project references the latest Entity Framework; However, the version-compatible Entity Framework database required for data linking is not found)

Source: Internet
Author: User

About VS2013 link MySQL EF6

Many of the online statements are broadly consistent, but the specific process may have some problems

Comprehensive longitudinal said, refining a few points:

1. Install Mysql-for-visualstudio-1.2.3.msi (required)

2. Install Mysql-connector-net-6.9.4.msi (required)

3. Install the EF Install command (install-package entityframework) using the NuGet Packages Package Manager, note: Which project is installed and automatically adds App. config under the project after installation is complete

4. Most of the network has this (using the NuGet Packages Package Manager installation Install-package MySql.Data.Entity.EF6) Helpless native cannot install, can omit

5. Modify the app. config for question 3 above

<entityFramework> <defaultconnectionfactory type="MySql.Data.Entity.MySqlConnectionFactory, MySql.Data.Entity.EF6"/> <providers> <provider invariantname="MySql.Data.MySqlClient"Type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"></provider> <provider invariantname="System.Data.SqlClient"Type="System.Data.Entity.SqlServer.SqlProviderServices, Entityframework.sqlserver"/> </providers> </entityFramework>

Over you can add your own

VS2013 EF6 MySQL (your project references the latest Entity Framework; However, the version-compatible Entity Framework database required for data linking is not found)

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.