The type or namespace name 'DbContext' could not be found-vs2012
来源:互联网 发布:手机qq清空缓存数据 编辑:程序博客网 时间:2024/06/05 17:14
The type or namespace name 'DbContext' could not be found
The type or namespace name 'DbSet' could not be found
这个怎么处理呢?
我们在进行程序编写的时候,using System.Data.Entity; 这个已经写了,怎么还是不行?
即使在References 中已经添加了引用还是不行,
原因是要添加
EntityFramework 如果在添加了System.Data.Entity这个引用无效后;
可以使用NuGet进行处理;
项目右键选择:
0 0
- The type or namespace name 'DbContext' could not be found-vs2012
- The type or namespace name 'AjaxControlToolkit' could not be found in the global namespace
- MSbuild failure: error CS0246: The type or namespace name 'DataLoader_Accessor' could not be found
- Unity发布时出现“The type or namespace name `UnityEditor' could not be found.” 错误
- Unity发布时出现“The type or namespace name `UnityEditor' could not be found.”
- The type or namespace name `MovieTexture' could not be found. Are you missing an assembly reference?
- The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an asse
- The type or namespace name '***' could not be found (are you missing a using directive or an asse
- WCF分布式开发常见错误(4):The type or namespace name 'DataContract' could not be found DataContract找不到
- Unity使用FXMaker导致发布时报“The type or namespace name `UnityEditor' could not be found” 解决备忘
- The type or namespace name 'Windows' does not exist in the class or namespace 'System'
- Error:The type or namespace name 'Office' does not exist in the namespace 'Microsoft' 解决方法
- 解决The type or namespace name \'XXXX\' does not exist in the namespace \'XXXXXXXXX\' 的错误
- The type or namespace name 'Zhaopin' does not exist in the namespace 'LMSoft' 问题的解决
- CS0234: The type or namespace name 'Linq' does not exist in the namespace 'System.Data'
- Microsoft.Practices.Unity使用配置文件总是报错The type name or alias could not be resolved.
- CS0234The type or namespace name 'Mvc' does not exist in the namespace 'Microsoft.AspNet' (are you
- The controller for path '/favicon.ico' could not be found or it does not implement the IController interface./r/nParameter name:
- 笑话一则【知道的太多了】
- 多线程解决生产者与消费者问题
- java 反射
- Java的类和对象
- 好好再整理一下Less知识吧
- The type or namespace name 'DbContext' could not be found-vs2012
- 【剑指offer】旋转递增数组的最小数字
- 归并排序求逆序对
- J2SE总结
- Spring Boot使用方法小札(4):使用Serlvet中原生Filter API
- JZOJ4609【NOI2016模拟7.11】哈夫曼树 期望的线性性
- Android获取并设置Activity的亮度
- spring复习回顾(一)
- 网络协议分析(最全)