报错信息如下: 类型“System.Data.Objects.ObjectContext”在未被引用的程序集中定义 解决方法: 引用类:System.Data.Entity 转载于:https://www.cnblogs.com/heikewudihei/articles/5012913.html