Asp.net, mvc4, mysql database, Ef problem set, mvc4mysql

Source: Internet
Author: User

Asp.net, mvc4, mysql database, Ef problem set, mvc4mysql

Asp.net mvc mysql database. When I was a newbie studying MVC4, I encountered the following problems, it also provides reference for beginners like me when encountering the following problems.

Question 1:
The solution is as follows:Install EntityFramework Question 2:

Solution:Add providerName = "to the connection string" System. Data . MySqlClient"   Question 3:
Solution:The cause of the problem is the providerName parameter of the connection string in web. config. Change providerName = "System. Data. MySqlClient" to providerName = "MySql. Data. MySqlClient ". Question 4: Solution:Install MySql. Data. Entity. EF6   Question 5:
Solution:Set providers, provider invariantName = "System. data. sqlClient "type =" System. data. entity. sqlServer. sqlProviderServices, EntityFramework. replace SqlServer "/"/providers "with providers" provider invariantName = "MySql. data. mySqlClient "type =" MySql. data. mySqlClient. mySqlProviderServices, MySql. data. entity. EF6 "/"/providers
Why does the asp net mvc4 website published in vs2012 go to iis?

The data pants address should not be read from the local publishing. It has nothing to do with the local IP address to write your database IP address.

Asp net mvc40 can be changed using EF, and errors may occur.

The top View should be
@ Model Student

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.