public override void Perform() { // After this operation, NewCollection will be associated with the end-point and ModifiedEndPoint.Collection will return NewCollection. // The previous ModifiedEndPoint.Collection will be a standalone copy of the end-point data. var oldDataStrategyOfNewCollection = CollectionEndPointCollectionManager.AssociateCollectionWithEndPoint(NewCollection); // Now, replace end-point's data with the data that was held by NewCollection before it was associated. ModifiedCollectionData.ReplaceContents(oldDataStrategyOfNewCollection); ModifiedEndPoint.Touch(); }
public override void Perform() { _oppositeObjectNullSetter(); ModifiedEndPoint.Touch(); }
public override void Perform() { ModifiedCollectionData.Replace(_index, NewRelatedObject); ModifiedEndPoint.Touch(); }
public override void Perform() { ModifiedEndPoint.Touch(); }
public override void Perform() { ModifiedCollectionData.Remove(OldRelatedObject); ModifiedEndPoint.Touch(); }
public override void Perform() { ModifiedCollectionData.Clear(); ModifiedEndPoint.Touch(); }
public override void Perform() { _oppositeObjectSetter(NewRelatedObject); ModifiedEndPoint.Touch(); }