我一直在尝试使用默认项目在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
编辑:忘了告诉我的尝试。
上我得出同样的结论本书虽然实体框架仍然没有不是SQL也不为MySQL崩溃创建工作完美无瑕一个ado.net模型。但是我已经通过使用SO链接再次跟随教程解决了问题,并将1行代码添加到了实体框架中:) –