今天試着學習了Entity Frame Work遇到的問題是
The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer'
registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded.
Make sure that the assembly-qualified name is used and that the assembly is available to the running application.
配置文件如下:
解決方法:
1.右鍵解決方案,選擇Manage NuGet Packages for Solution...
2.選擇項目重新安裝EntityFrameWork
參考網址:http://stackoverflow.com/questions/21641435/error-no-entity-framework-provider-found-for-the-ado-net-provider-with-invarian
如果還有問題:
Entity Framework The underlying provider failed on Open
可以試試:http://stackoverflow.com/questions/18271301/entity-framework-the-underlying-provider-failed-on-open
檢測數據庫連接字符串是否有問題!