public void DeleteMessageOptionIssue(MessageOptionIssue messageOptionIssue) { if ((messageOptionIssue.EntityState == EntityState.Detached)) { this.ObjectContext.MessageOptionIssues.Attach(messageOptionIssue); } this.ObjectContext.MessageOptionIssues.DeleteObject(messageOptionIssue); }
public void InsertMessageOptionIssue(MessageOptionIssue messageOptionIssue) { if ((messageOptionIssue.EntityState != EntityState.Detached)) { this.ObjectContext.ObjectStateManager.ChangeObjectState(messageOptionIssue, EntityState.Added); } else { this.ObjectContext.MessageOptionIssues.AddObject(messageOptionIssue); } }
public void UpdateMessageOptionIssue(MessageOptionIssue currentMessageOptionIssue) { this.ObjectContext.MessageOptionIssues.AttachAsModified(currentMessageOptionIssue, this.ChangeSet.GetOriginal(currentMessageOptionIssue)); }