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