未能找到类型或命名空间名称“DbContext”

错误如下:

  

 

 

解决方法:

  下载ADO.NET Entity Framework 4.1

  http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=8363

  安装完成后,添加引用->浏览->找到EF4.1的安装位置,添加EntityFramework.dll

  

 

 参考:

  http://www.cnblogs.com/haogj/archive/2011/11/13/2246884.html
  http://www.keleyi.com/a/bjac/bc23c581eeada67f.htm

posted @ 2020-01-07 13:48  紫极魔瞳  阅读(377)  评论(0编辑  收藏  举报