Example #1
0
 /// <summary>
 /// Add an outbound value to update the rule's primary
 /// property on the business object once the rule is complete.
 /// </summary>
 /// <param name="value">New property value.</param>
 public void AddOutValue(object value)
 {
     if (OutputPropertyValues == null)
     {
         OutputPropertyValues = new Dictionary <Core.IPropertyInfo, object>();
     }
     OutputPropertyValues.Add(Rule.PrimaryProperty, value);
 }
Example #2
0
 /// <summary>
 /// Add an outbound value to update a property on the business
 /// object once the rule is complete.
 /// </summary>
 /// <param name="property">Property to update.</param>
 /// <param name="value">New property value.</param>
 public void AddOutValue(Csla.Core.IPropertyInfo property, object value)
 {
     if (!Rule.AffectedProperties.Contains(property))
     {
         throw new ArgumentOutOfRangeException(property.Name);
     }
     if (OutputPropertyValues == null)
     {
         OutputPropertyValues = new Dictionary <Core.IPropertyInfo, object>();
     }
     OutputPropertyValues.Add(property, value);
 }