当我尝试通过model
生成数据库时发生此问题我尝试通过将其重新添加到托盘
来解决一些孤立的问题,例如mySQL56无法正常运行我也有更新的mysql先决条件,即: MySQL for Visual Studio 1.2.1 Connector / Net 6.9.6产品。
我还尝试通过Nuget
更新和添加引用MySql.Data 6.9.6
MySql.Data.Entities 6.8.3.0
MySql.Data.Entity 6.9.6
MySql.Fabric 6.9.6
MySQL.Net 6.6.4
MySql.Web
但我仍然得到错误......我错过了什么吗?在我的Web.Config中:
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d">
</provider>
</providers>
</entityFramework>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.6.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
</DbProviderFactories>
</system.data><MySQL>