EntityFramework在root目录web.config中的配置设置
2015-10-15 21:10
330 查看
未找到具有固定名称“System.Data.SqlClient”的 ADO.NET 提供程序的实体框架提供程序。请确保在应用程序配置文件的“entityFramework”节中注册了该提供程序。有关详细信息,请参阅 http://go.microsoft.com/fwlink/?LinkId=260882。
确保项目中引入 pasting
entityFramework.dll,然后在配置文件中配置(如果使用nuget)install包,可以忽略该篇随笔
<configuration>
<configSections> <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> </configSections>.........................
...........................
.........................
<entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> <providers> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> </providers> </entityFramework>
</configuration>
相关文章推荐
- [Java Web]Web应用基本概念
- swift 2.0 字典
- 51nod 1106 质数检测 (三种模板_好题)
- linux shell用法(1)-- tee命令
- 海岸线研究流水账
- 利用颜色矩阵实现图片效果
- 车站
- Javascript基础(三)
- NSURLErrorDomain Code=-1002 “unsupported URL”
- 有两个磁盘文件 A,B 各放一行字母,要求把两文件信息合并(按字母排序),输出到C 中
- Android中activity的两种启动方式
- Yii2的urlmanager开启
- web前端学习笔记02
- 程序员面试、算法研究、编程艺术、红黑树、数据挖掘5大系列集锦
- MyEclipse8.5配置整合SSH框架 简单登录验证功能
- Mybatis高级特性学习(二)
- 路书
- 初识Mybatis-Spring
- 【BeiJing2011】【BZOJ2462】矩阵模板
- rsync