摘要: 如果我们在先前的步骤中读取过数据,如 var list = db.Model.ToList(); 之后再,附加 var o = new Model { Id = 1 }; db.Model.Attach(o); 就会报,类似这样的错误 Attaching an entity of type 'efAutoDetach.Model' failed because another enti... 阅读全文
posted @ 2015-05-08 10:42 czcz1024 阅读(868) 评论(0) 推荐(0) 编辑