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:

650) this.width=650; "src=" http://s11.sinaimg.cn/mw690/0035jXqKgy6HfA5sUAyea&690 "width=" 690 "height=" "the" name = "image_operate_68721394610549032" id= "image_operate_27981408261908396" style= "border:0px;" alt= " 0035jxqkgy6hfa5suayea&690 "/>
The solution is as follows:

Installing entityframework


Question two:

650) this.width=650; "src=" http://s5.sinaimg.cn/mw690/0035jXqKgy6LgqilMtCa4&690 "width=" 690 "height=" name= "image_operate_40591408090869932" style= "border:0px;" alt= "0035jxqkgy6lgqilmtca4&690"/>
Workaround:

Add Providername= "System.Data inside the connection string. Mysqlclient "


Question three:

650) this.width=650; "src=" http://s3.sinaimg.cn/mw690/0035jXqKgy6Lgrgktlo22&690 "width=" 690 "height=" 239 "name= "image_operate_3891408094170468" style= "border:0px;" alt= "0035jxqkgy6lgrgktlo22&690"/>

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 "

It's OK.

Question four:

650) this.width=650; "src=" http://s8.sinaimg.cn/mw690/0035jXqKgy6Ljxf37pB47&690 "width=" 690 "height=" 129 "name= "image_operate_26061408261385017" style= "border:0px;" alt= "0035jxqkgy6ljxf37pb47&690"/>

Workaround:

Installing MySql.Data.Entity.EF6


Question five:

650) this.width=650; "src=" http://s7.sinaimg.cn/mw690/0035jXqKgy6LgqBOY3cb6&690 "width=" 690 "height=" "Name=" "image_operate_51951408094165053" style= "border:0px;" alt= "0035jxqkgy6lgqboy3cb6&690"/>
Workaround:

Will

"Providers"

"Provider Invariantname=" System.Data.SqlClient "type=" System.Data.Entity.SqlServer.SqlProviderServices, Entityframework.sqlserver "/"

"/providers"

Replaced by

"Providers"

"Provider Invariantname=" MySql.Data.MySqlClient "

Type= "MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"/"

"/providers"


This article is from the "wind up with the Wind Stop" blog, please be sure to keep this source http://hww9011.blog.51cto.com/3545422/1541263

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.