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