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
原创粉丝点击