public static RuleMethod AddObjectRequiredRule(RuleList pRuleList, BusinessProperty pColumn) { return(pRuleList.Add(ObjectRequired, new RuleArgs(pColumn))); }
public static RuleMethod AddRegExMatchRule(RuleList pRuleList, string pPropertyName, Regex pRegExMatchValue) { return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pPropertyName, pRegExMatchValue))); }
public static RuleMethod AddRegExMatchRule(RuleList pRuleList, BusinessProperty pColumn, Regex pRegExMatchValue) { return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pColumn.Name, pRegExMatchValue))); }
public static RuleMethod AddRegExMatchRule(RuleList pRuleList, string pPropertyName, RegExPatterns pRegExMatchPattern) { return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pPropertyName, pRegExMatchPattern))); }
public static RuleMethod AddObjectRequiredRule(RuleList pRuleList, string pPropertyName) { return(pRuleList.Add(ObjectRequired, new RuleArgs(pPropertyName))); }
public static RuleMethod AddMinMaxValueRule <T>(RuleList pRuleList, string pPropertyName, T pMinValue, T pMaxValue) { return(pRuleList.Add(MinMaxValue <T>, new MinMaxArgs <T>(pPropertyName, pMinValue, pMaxValue))); }
public static RuleMethod AddMinMaxValueRule <T>(RuleList pRuleList, BusinessProperty pColumn, T pMinValue, T pMaxValue) { return(AddMinMaxValueRule <T>(pRuleList, pColumn.Name, pMinValue, pMaxValue)); }
public static RuleMethod AddIntegerMinValueRule(RuleList pRuleList, BusinessProperty pColumn, long pMinValue) { return(AddIntegerMinValueRule(pRuleList, pColumn.Name, pMinValue)); }
public static RuleMethod AddMinValueRule <T>(RuleList pRuleList, string pPropertyName, T pMinValue) { return(pRuleList.Add(MinValue <T>, MinMaxArgs <T> .CreateMinOnlyArgs(pPropertyName, pMinValue))); }
public static RuleMethod AddStringMinMaxLengthRule(RuleList pRuleList, BusinessProperty pColumn, int pMinLength, int pMaxLength) { return(AddStringMinMaxLengthRule(pRuleList, pColumn.Name, pMinLength, pMaxLength)); }
public static RuleMethod AddIntegerMinValueRule(RuleList pRuleList, string pPropertyName, long pMinValue) { return(pRuleList.Add(IntegerMinValue, MinMaxArgs <long> .CreateMinOnlyArgs(pPropertyName, pMinValue))); }
public static RuleMethod AddStringMinMaxLengthRule(RuleList pRuleList, string pPropertyName, int pMinLength, int pMaxLength) { return(pRuleList.Add(StringMinMaxLength, new MinMaxArgs <Int32>(pPropertyName, pMinLength, pMaxLength))); }
public static RuleMethod Add(RuleList pRuleList, string pPropertyName) { RuleMethod rule = CreateRuleMethod(pRuleList.TargetType, pPropertyName); return(pRuleList.Add(rule)); }
public static RuleMethod Add(RuleList pRuleList, BusinessProperty pPropertyColumn) { return(Add(pRuleList, pPropertyColumn.Name)); }
public static RuleMethod Add(RuleList pRuleList, BusinessProperty pPropertyColumn, object pMissingValue) { return(Add(pRuleList, pPropertyColumn.Name, pMissingValue)); }
/// <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; }