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