Example #1
0
 public void InsertImportantPartRejester(important_part_rejester important_part_rejester)
 {
     if ((important_part_rejester.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(important_part_rejester, EntityState.Added);
     }
     else
     {
         this.ObjectContext.important_part_rejester.AddObject(important_part_rejester);
     }
 }
Example #2
0
 public void UpdateImportantPartRejester(important_part_rejester currentimportant_part_rejester)
 {
     this.ObjectContext.important_part_rejester.AttachAsModified(currentimportant_part_rejester, this.ChangeSet.GetOriginal(currentimportant_part_rejester));
 }