在MVC4中获取sqlserverprovider错误 [英] Getting an sqlserverprovider error in MVC4

查看:177
本文介绍了在MVC4中获取sqlserverprovider错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有为ADO.NET提供程序找到具有不变名称System.Data.SqlClient的实体框架提供程序。确保提供程序已在应用程序配置文件的entityFramework部分中注册



我的模型文件夹存在于类库

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

my model folder is present inside class library

推荐答案

转到软件包管理器控制台并安装





PM> Install-Package EntityFramework
go to Package Manager Console and Install


PM> Install-Package EntityFramework


这篇关于在MVC4中获取sqlserverprovider错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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