没有实体框架提供程序找到的ADO.NET提供程序不变名称'System.Data.SqlClient' [英] No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'

查看:148
本文介绍了没有实体框架提供程序找到的ADO.NET提供程序不变名称'System.Data.SqlClient'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过nuget下载EF6并尝试运行我的项目,它返回以下错误:


没有找到实体框架提供者具有不变名称System.Data.SqlClient的ADO.NET提供程序。确保提供程序已注册在应用程序配置文件的entityFramework部分。有关详细信息,请参阅:

  PM> Install-Package EntityFramework 


After downloading the EF6 by nuget and try to run my project, it returns the following error:

No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. Make sure the provider is registered in the 'entityFramework' section of the application config file. See http://go.microsoft.com/fwlink/?LinkId=260882 for more information.

解决方案

I just got into the same problem and it looks like EntityFramework although installed from NuGet Package Manager was not correctly installed in the project.

I managed to fix it by running the following command on Package Manager Console:

PM> Install-Package EntityFramework

这篇关于没有实体框架提供程序找到的ADO.NET提供程序不变名称'System.Data.SqlClient'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆