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

            return(pRuleList.Add(rule));
        }
Ejemplo n.º 14
0
 public static RuleMethod Add(RuleList pRuleList, BusinessProperty pPropertyColumn)
 {
     return(Add(pRuleList, pPropertyColumn.Name));
 }
Ejemplo n.º 15
0
 public static RuleMethod Add(RuleList pRuleList, BusinessProperty pPropertyColumn, object pMissingValue)
 {
     return(Add(pRuleList, pPropertyColumn.Name, pMissingValue));
 }
Ejemplo n.º 16
0
 /// <summary>Constructor</summary>
 /// <param name="businessObject">Object governed by this BrokenRuleManager instance.</param>
 /// <param name="pRuleList">The validation rules applicable to this type of "businessObject".</param>
 public BrokenRuleManager(object businessObject, RuleList pRuleList)
 {
     mTarget   = businessObject;
     mRuleList = pRuleList;
 }