public void DeleteLaterRatedIssue(LaterRatedIssue laterRatedIssue) { if ((laterRatedIssue.EntityState == EntityState.Detached)) { this.ObjectContext.LaterRatedIssues.Attach(laterRatedIssue); } this.ObjectContext.LaterRatedIssues.DeleteObject(laterRatedIssue); }
public void InsertLaterRatedIssue(LaterRatedIssue laterRatedIssue) { if ((laterRatedIssue.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(laterRatedIssue, EntityState.Added); } else { this.ObjectContext.LaterRatedIssues.AddObject(laterRatedIssue); } }
public void UpdateLaterRatedIssue(LaterRatedIssue currentLaterRatedIssue) { this.ObjectContext.LaterRatedIssues.AttachAsModified(currentLaterRatedIssue, this.ChangeSet.GetOriginal(currentLaterRatedIssue)); }