Esempio n. 1
0
 public static RuleMethod AddObjectRequiredRule(RuleList pRuleList, BusinessProperty pColumn)
 {
     return(pRuleList.Add(ObjectRequired, new RuleArgs(pColumn)));
 }
Esempio n. 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));
 }
Esempio n. 3
0
 public static RuleMethod AddMinMaxValueRule <T>(RuleList pRuleList, BusinessProperty pColumn, T pMinValue, T pMaxValue)
 {
     return(AddMinMaxValueRule <T>(pRuleList, pColumn.Name, pMinValue, pMaxValue));
 }
Esempio n. 4
0
 public static RuleMethod AddRegExMatchRule(RuleList pRuleList, BusinessProperty pColumn, Regex pRegExMatchValue)
 {
     return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pColumn.Name, pRegExMatchValue)));
 }
Esempio n. 5
0
 public static RuleMethod AddStringMinMaxLengthRule(RuleList pRuleList, BusinessProperty pColumn, int pMinLength, int pMaxLength)
 {
     return(AddStringMinMaxLengthRule(pRuleList, pColumn.Name, pMinLength, pMaxLength));
 }
Esempio n. 6
0
 public static RuleMethod AddIntegerMinValueRule(RuleList pRuleList, BusinessProperty pColumn, long pMinValue)
 {
     return(AddIntegerMinValueRule(pRuleList, pColumn.Name, pMinValue));
 }
Esempio n. 7
0
 public RuleArgs(BusinessProperty pColumn, PropertyNameFormat pPropertyNameDisplayMode)
     : this(pColumn.Name, pPropertyNameDisplayMode)
 {
 }
Esempio n. 8
0
 public RuleArgs(BusinessProperty pColumn) : this(pColumn.Name, PropertyNameFormat.SplitByCase)
 {
 }
Esempio n. 9
0
 public static RuleMethod Add(RuleList pRuleList, BusinessProperty pPropertyColumn)
 {
     return(Add(pRuleList, pPropertyColumn.Name));
 }
Esempio n. 10
0
 public static RuleMethod Add(RuleList pRuleList, BusinessProperty pPropertyColumn, object pMissingValue)
 {
     return(Add(pRuleList, pPropertyColumn.Name, pMissingValue));
 }
Esempio n. 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)
 {
 }