public void InsertTaxpayerdocument(taxpayerdocument taxpayerdocument) { if ((taxpayerdocument.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(taxpayerdocument, EntityState.Added); } else { this.ObjectContext.taxpayerdocument.AddObject(taxpayerdocument); } }
public void DeleteTaxpayerdocument(taxpayerdocument taxpayerdocument) { if ((taxpayerdocument.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(taxpayerdocument, EntityState.Deleted); } else { this.ObjectContext.taxpayerdocument.Attach(taxpayerdocument); this.ObjectContext.taxpayerdocument.DeleteObject(taxpayerdocument); } }
public void UpdateTaxpayerdocument(taxpayerdocument currenttaxpayerdocument) { this.ObjectContext.taxpayerdocument.AttachAsModified(currenttaxpayerdocument, this.ChangeSet.GetOriginal(currenttaxpayerdocument)); }