EntityFrame Work:No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'


今天試着學習了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

檢測數據庫連接字符串是否有問題!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM