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

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

问题描述

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

<块引用>

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

PM>安装包实体框架

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

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

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