/// <summary> /// Calls <see cref="EntityAspect.RejectChanges"/> on all entities in this group. /// </summary> public void RejectChanges() { ChangedAspects.ToList().ForEach(ea => ea.RejectChanges()); }
/// <summary> /// Determines whether any entity in this group has pending changes. /// </summary> /// <returns></returns> public bool HasChanges() { return(ChangedAspects.Any()); }
/// <summary> /// Calls <see cref="EntityAspect.AcceptChanges"/> on all entities in this group. /// </summary> public void AcceptChanges() { ChangedAspects.ToList().ForEach(ea => ea.AcceptChanges()); }