2017-04-04 66 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行代碼添加到了實體框架中:) –