Asp.net,mvc4,mysql database, EF encounters a problem set

Source: Internet
Author: User

The ASP. NET MVC MySQL database, in my a novice self-study MVC4 encountered the following problems, one solution out of the method to record the following to facilitate their own future review, but also for the convenience of some novice like me when encountering the following problems, provide reference

Question one:
The solution is as follows:Installing EntityFramework question two:

Workaround:Add inside the connection stringProvidername= " System.Data . Mysqlclient "   question three:
Workaround:The problem is the reason for the connection string providername parameter in Web. config to change providername= "System.Data.MySqlClient" to Providername= " MySql.Data.MySqlClient "is OK. question four: Workaround:Installing MySql.Data.Entity.EF6   question five:
Workaround:"Providers" "Provider Invariantname=" System.Data.SqlClient "type=" System.Data.Entity.SqlServer.SqlProviderServices, Entityframework.sqlserver "/" "/providers" replaced by "providers" provid Er invariantname= "MySql.Data.MySqlClient" type= "MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.En Tity. EF6 "/" "/providers"

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.