10 2012 档案
摘要: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...
阅读全文