/// <summary> /// Marks all fields as unchanged and clears the IsChanged flag. /// </summary> /// <remarks> /// This will call AcceptChanges on properties and collection items that implement IChangeTracking /// </remarks> public void AcceptChanges() { foreach (var item in this) { if (item is IChangeTracking) { ((IChangeTracking)item).AcceptChanges(); } } m_OriginalList.Clear(); m_OriginalList.AddRange(this); Properties.AcceptChanges(true); }
public void AcceptChangesLocal() { Properties.AcceptChanges(false); }
/// <summary> /// Marks all fields as unchanged and clears the IsChanged flag. /// </summary> /// <remarks> /// This will call AcceptChanges on properties that implement IChangeTracking /// </remarks> public void AcceptChanges() { Properties.AcceptChanges(true); }