Ejemplo n.º 1
0
 public void DeleteJournalItemBiz(JournalItemBiz journalItemBiz)
 {
     if ((journalItemBiz.EntityState == EntityState.Detached))
     {
         this.ObjectContext.JournalItemBizs.Attach(journalItemBiz);
     }
     this.ObjectContext.JournalItemBizs.DeleteObject(journalItemBiz);
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 3
0
 public void UpdateJournalItemBiz(JournalItemBiz currentJournalItemBiz)
 {
     this.ObjectContext.JournalItemBizs.AttachAsModified(currentJournalItemBiz);
 }