2017-04-04 68 views
1

我一直在尝试使用默认项目在Visual Studio 2017中创建一个REST API。 这工作得很好用SQL本地数据库,但是当我尝试使用本教程将其转换为一个MySQL的变体: https://docs.microsoft.com/en-us/aspnet/identity/overview/getting-started/aspnet-identity-using-mysql-storage-with-an-entityframework-mysql-providerVisual Studio 2017 +实体框架+身份+ mysql不工作

我得到这个错误:

'The Entity Framework provider type 'MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity' registered in the application config file for the ADO.NET provider with invariant name 'MySql.Data.MySqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running application. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.' 

本教程工作正常视觉工作室2015. 我注意到,从devart或mysql的dotnet连接器等其他东西不工作的Visual Studio 2017,但我早?

我曾尝试以下解决方案: - Enity Framework With MySQL

编辑:忘了告诉我的尝试。

回答

1

该教程是从2013年开始的。MySQL连接器尚不支持Visual Studio 2017,不久之后,预计很快,同时Devart拥有一个可与Visual Studio 2017和MySQL配合使用的连接器。

编辑

的MySQL现在原生支持的Visual Studio 2017年更多信息在:https://dev.mysql.com/doc/visual-studio/en/visual-studio-install.html

+1

上我得出同样的结论本书虽然实体框架仍然没有不是SQL也不为MySQL崩溃创建工作完美无瑕一个ado.net模型。但是我已经通过使用SO链接再次跟随教程解决了问题,并将1行代码添加到了实体框架中:) –