コード例 #1
0
 public void DeleteLaterRatedIssue(LaterRatedIssue laterRatedIssue)
 {
     if ((laterRatedIssue.EntityState == EntityState.Detached))
     {
         this.ObjectContext.LaterRatedIssues.Attach(laterRatedIssue);
     }
     this.ObjectContext.LaterRatedIssues.DeleteObject(laterRatedIssue);
 }
コード例 #2
0
 public void InsertLaterRatedIssue(LaterRatedIssue laterRatedIssue)
 {
     if ((laterRatedIssue.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(laterRatedIssue, EntityState.Added);
     }
     else
     {
         this.ObjectContext.LaterRatedIssues.AddObject(laterRatedIssue);
     }
 }
コード例 #3
0
 public void UpdateLaterRatedIssue(LaterRatedIssue currentLaterRatedIssue)
 {
     this.ObjectContext.LaterRatedIssues.AttachAsModified(currentLaterRatedIssue, this.ChangeSet.GetOriginal(currentLaterRatedIssue));
 }