摘要: public void Attach(string entityName, object entity, params string[] navigationProperties) { ObjectContext objectContext = ((IObjectContextAdapter)_Context).ObjectContext; objectContext.AttachTo(entityName, entity); //把detach的entity attach到ObjectContext objectContext.ObjectStateManager... 阅读全文
posted @ 2012-10-30 17:14 深圳大漠 阅读(592) 评论(0) 推荐(0) 编辑