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

            return(pRuleList.Add(rule));
        }