public void DeleteJournalItemBiz(JournalItemBiz journalItemBiz) { if ((journalItemBiz.EntityState == EntityState.Detached)) { this.ObjectContext.JournalItemBizs.Attach(journalItemBiz); } this.ObjectContext.JournalItemBizs.DeleteObject(journalItemBiz); }
public void InsertJournalItemBiz(JournalItemBiz journalItemBiz) { if ((journalItemBiz.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(journalItemBiz, EntityState.Added); } else { this.ObjectContext.JournalItemBizs.AddObject(journalItemBiz); } }
public void UpdateJournalItemBiz(JournalItemBiz currentJournalItemBiz) { this.ObjectContext.JournalItemBizs.AttachAsModified(currentJournalItemBiz); }