public static RuleMethod AddObjectRequiredRule(RuleList pRuleList, BusinessProperty pColumn) { return(pRuleList.Add(ObjectRequired, new RuleArgs(pColumn))); }
/// <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)); }
public static RuleMethod AddMinMaxValueRule <T>(RuleList pRuleList, BusinessProperty pColumn, T pMinValue, T pMaxValue) { return(AddMinMaxValueRule <T>(pRuleList, pColumn.Name, pMinValue, pMaxValue)); }
public static RuleMethod AddRegExMatchRule(RuleList pRuleList, BusinessProperty pColumn, Regex pRegExMatchValue) { return(pRuleList.Add(RegExMatch, new RegExRuleArgs(pColumn.Name, pRegExMatchValue))); }
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, BusinessProperty pColumn, long pMinValue) { return(AddIntegerMinValueRule(pRuleList, pColumn.Name, pMinValue)); }
public RuleArgs(BusinessProperty pColumn, PropertyNameFormat pPropertyNameDisplayMode) : this(pColumn.Name, pPropertyNameDisplayMode) { }
public RuleArgs(BusinessProperty pColumn) : this(pColumn.Name, PropertyNameFormat.SplitByCase) { }
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>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) { }