Example #1
0
 public static RuleMethod AddObjectRequiredRule(RuleList pRuleList, BusinessProperty pColumn)
 {
     return(pRuleList.Add(ObjectRequired, new RuleArgs(pColumn)));
 }
Example #2
0
 /// <summary>Creates and adds a RuleMethod to the list of rules to be enforced.</summary>
 /// <param name="pHandler">The handler that implements the rule.</param>
 /// <param name="pBusinessProperty">BusinessProperty associated with the property.</param>
 /// <returns>The added RuleMethod.</returns>
 /// <remarks>Derives property name from the BusinessProperty;
 /// See <see cref="Add(RuleHandler, string)"/>.</remarks>
 public RuleMethod Add(RuleHandler pHandler, BusinessProperty pBusinessProperty)
 {
     return(Add(pHandler, pBusinessProperty.Name));
 }
Example #3
0
 public static RuleMethod AddMinMaxValueRule <T>(RuleList pRuleList, BusinessProperty pColumn, T pMinValue, T pMaxValue)
 {
     return(AddMinMaxValueRule <T>(pRuleList, pColumn.Name, pMinValue, pMaxValue));
 }
Example #4
0
 public static RuleMethod AddRegExMatchRule(RuleList pRuleList, BusinessProperty pColumn, Regex pRegExMatchValue)
 {
     return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pColumn.Name, pRegExMatchValue)));
 }
Example #5
0
 public static RuleMethod AddStringMinMaxLengthRule(RuleList pRuleList, BusinessProperty pColumn, int pMinLength, int pMaxLength)
 {
     return(AddStringMinMaxLengthRule(pRuleList, pColumn.Name, pMinLength, pMaxLength));
 }
Example #6
0
 public static RuleMethod AddIntegerMinValueRule(RuleList pRuleList, BusinessProperty pColumn, long pMinValue)
 {
     return(AddIntegerMinValueRule(pRuleList, pColumn.Name, pMinValue));
 }
Example #7
0
 public RuleArgs(BusinessProperty pColumn, PropertyNameFormat pPropertyNameDisplayMode)
     : this(pColumn.Name, pPropertyNameDisplayMode)
 {
 }
Example #8
0
 public RuleArgs(BusinessProperty pColumn) : this(pColumn.Name, PropertyNameFormat.SplitByCase)
 {
 }
Example #9
0
 public static RuleMethod Add(RuleList pRuleList, BusinessProperty pPropertyColumn)
 {
     return(Add(pRuleList, pPropertyColumn.Name));
 }
Example #10
0
 public static RuleMethod Add(RuleList pRuleList, BusinessProperty pPropertyColumn, object pMissingValue)
 {
     return(Add(pRuleList, pPropertyColumn.Name, pMissingValue));
 }
Example #11
0
 /// <summary>Creates and initializes the rule.</summary>
 /// <param name="pHandler">The address of the method implementing the rule.</param>
 /// <param name="pBusinessProperty">The BusinessProperty to which the rule applies.</param>
 public RuleMethod(RuleHandler pHandler, BusinessProperty pBusinessProperty)
     : this(pHandler, pBusinessProperty.Name)
 {
 }