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