Vs2013+ef6+mysql

Source: Internet
Author: User

1, first need to add a model class library throughout the project, in the class library to reference EF

I need to add the MySQL object entity for EF under this project

First we need to introduce several related references, which I add through nuget, such as

Next I need to add the EF framework through the ADO Entity Data Model, but MySQL is not found when I select the data source

2. Add a data source

For MySQL I installed the components such as


Then in Control Panel-Administrative Tools-Data source ODBC (double-click)
Pop-up dialog box, first tab, "User DSN", click "Add" inside there is MySQL option, "config", fill in blank, click Test, after success, restart vs should be able to see

Configure database connections such as

OK then click Next to encounter problems ...

Solution--

Not yet resolved, embarrassed ~, every time the addition is a flash back!!!

Also refer to http://blog.csdn.net/niewq/article/details/41877301

Vs2013+ef6+mysql

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.