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"