public PropertyValueTrackingData(PropertyTrackingInformation changeType, object originalValue) { EnumValidator.ThrowIfInvalid <PropertyTrackingInformation>(changeType, "changeType"); this.propertyValueState = changeType; this.originalPropertyValue = originalValue; }
private void AddTrackingInformation(StorePropertyDefinition propertyDefinition, PropertyTrackingInformation changeType, object originalValue) { if ((propertyDefinition.PropertyFlags & PropertyFlags.TrackChange) == PropertyFlags.TrackChange && !this.TrackedPropertyInformation.ContainsKey(propertyDefinition)) { PropertyValueTrackingData value = new PropertyValueTrackingData(changeType, originalValue); this.TrackedPropertyInformation.Add(propertyDefinition, value); } }