我一直在嘗試使用默認項目在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行代碼添加到了實體框架中:) –