Example #1
0
 public static RuleMethod AddObjectRequiredRule(RuleList pRuleList, BusinessProperty pColumn)
 {
     return(pRuleList.Add(ObjectRequired, new RuleArgs(pColumn)));
 }
Example #2
0
 public static RuleMethod AddRegExMatchRule(RuleList pRuleList, string pPropertyName, Regex pRegExMatchValue)
 {
     return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pPropertyName, pRegExMatchValue)));
 }
Example #3
0
 public static RuleMethod AddRegExMatchRule(RuleList pRuleList, BusinessProperty pColumn, Regex pRegExMatchValue)
 {
     return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pColumn.Name, pRegExMatchValue)));
 }
Example #4
0
 public static RuleMethod AddRegExMatchRule(RuleList pRuleList,
                                            string pPropertyName, RegExPatterns pRegExMatchPattern)
 {
     return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pPropertyName, pRegExMatchPattern)));
 }
Example #5
0
 public static RuleMethod AddObjectRequiredRule(RuleList pRuleList, string pPropertyName)
 {
     return(pRuleList.Add(ObjectRequired, new RuleArgs(pPropertyName)));
 }
Example #6
0
 public static RuleMethod AddMinMaxValueRule <T>(RuleList pRuleList, string pPropertyName, T pMinValue, T pMaxValue)
 {
     return(pRuleList.Add(MinMaxValue <T>, new MinMaxArgs <T>(pPropertyName, pMinValue, pMaxValue)));
 }
Example #7
0
 public static RuleMethod AddMinValueRule <T>(RuleList pRuleList, string pPropertyName, T pMinValue)
 {
     return(pRuleList.Add(MinValue <T>, MinMaxArgs <T> .CreateMinOnlyArgs(pPropertyName, pMinValue)));
 }
Example #8
0
 public static RuleMethod AddIntegerMinValueRule(RuleList pRuleList, string pPropertyName, long pMinValue)
 {
     return(pRuleList.Add(IntegerMinValue, MinMaxArgs <long> .CreateMinOnlyArgs(pPropertyName, pMinValue)));
 }
Example #9
0
 public static RuleMethod AddStringMinMaxLengthRule(RuleList pRuleList, string pPropertyName, int pMinLength, int pMaxLength)
 {
     return(pRuleList.Add(StringMinMaxLength,
                          new MinMaxArgs <Int32>(pPropertyName, pMinLength, pMaxLength)));
 }
Example #10
0
        public static RuleMethod Add(RuleList pRuleList, string pPropertyName)
        {
            RuleMethod rule = CreateRuleMethod(pRuleList.TargetType, pPropertyName);

            return(pRuleList.Add(rule));
        }