我正在尝试使用ASP.Net MVC3、Entity Framework和MySQL创建Web应用程序。
我已经将以下代码添加到我的Web.Config文件中。
<connectionStrings>
<add name="ContactContext" connectionString="server=localhost;database=contacts;uid=root;pwd=password;" providerName="MySql.Data.MySqlClient"/>
</connectionStrings>
我在项目"Contact_Me"中创建了"Person"模型和"ContactContext"。当我尝试创建一个包括Person模型和Contact上下文的"ContactController"时,它会给我以下错误提示:"Unable to retrieve metadata for "Connect_Me.Models.Persons". The provider did not return a ProviderManifestToken string" MYSQ & MVC3 SQL connection error \ ProviderManifestToken but I am using MySQL这个问题最接近我的情况,但是答案没有解决我的问题。
提前感谢。