未找到具有不变名称“System.Data.SqlClient"的 ADO.NET 提供程序的实体框架提供程序 [英] No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'
问题描述
通过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屋!