Свойство | Тип | Описание | |
---|---|---|---|
_parameters | object>.Dictionary |
Метод | Описание | |
---|---|---|
IsPropValueValid ( string displayName, Object propValue, string &errorMessage ) : bool |
Indicates whether the property value is valid against the rules
|
|
SetParameter ( string parameterName, object value ) : void |
Set a value for any named parameter
|
Метод | Описание | |
---|---|---|
GetBaseErrorMessage ( object propValue, string displayName ) : string |
Returns the base error message that can be used by sub classes of PropRuleBase.
|
|
PropRuleBase ( string name, string message ) : System |
Constructor to initialise a new property rule
|
|
SetupParameters ( ) : void |
Sets up the parameters to the rule, that is the individual pairs of rule type and rule value that make up the composite rule
|
Метод | Описание | |
---|---|---|
FillParameters ( IEnumerable |
protected GetBaseErrorMessage ( object propValue, string displayName ) : string | ||
propValue | object | The value that has cuased the broken rule. |
displayName | string | The display name of the property that the business rule is broken for. |
Результат | string |
public IsPropValueValid ( string displayName, Object propValue, string &errorMessage ) : bool | ||
displayName | string | The property name being checked |
propValue | Object | The value to check |
errorMessage | string | A string to amend with an error /// message indicating why the value might have been invalid |
Результат | bool |
protected PropRuleBase ( string name, string message ) : System | ||
name | string | The name of the rule |
message | string | This rule's failure message |
Результат | System |
public SetParameter ( string parameterName, object value ) : void | ||
parameterName | string | |
value | object | |
Результат | void |
protected abstract SetupParameters ( ) : void | ||
Результат | void |