Property | Type | Description | |
---|---|---|---|
PropertyRule | System |
Method | Description | |
---|---|---|
PropertyRule ( string rootType, string property, ConditionType conditionType, RuleInvocationType invocationTypes ) : System |
Creates a new PropertyRule for the specified property and condition type.
|
|
PropertyRule ( string rootType, string property, ConditionType>.Func |
Creates a new PropertyRule for the specified property and condition type.
|
Method | Description | |
---|---|---|
ConditionApplies ( ModelInstance root ) : bool |
Overridden in subclasses to determine if the ConditionType applies.
|
|
Format ( ModelType rootType, string property, object value ) : string |
Formats the specified value based on the formatting associated with the specified property.
|
|
GetErrorCode ( string rootType, string property, string rule ) : string |
Generates a unique error code for a property-specific rule.
|
|
GetLabel ( ModelType rootType, string property ) : string |
Gets the label for the specified property.
|
|
GetSourceLabel ( ModelType rootType, string source ) : string |
Gets the label for the specified source property path.
|
|
InitializePredicates ( ) : void |
Initializes predicates for the specified property rule which leverages a comparison property.
|
|
OnInvoke ( ModelInstance root, |
||
PropertyRule ( string rootType, string property, RuleInvocationType invocationTypes ) : System |
Method | Description | |
---|---|---|
PropertyRule ( ) : System |
Register resources for validation rule subclasses.
|
protected abstract ConditionApplies ( ModelInstance root ) : bool | ||
root | ModelInstance | |
return | bool |
protected static Format ( ModelType rootType, string property, object value ) : string | ||
rootType | ModelType | |
property | string | |
value | object | |
return | string |
protected static GetErrorCode ( string rootType, string property, string rule ) : string | ||
rootType | string | |
property | string | |
rule | string | |
return | string |
protected static GetLabel ( ModelType rootType, string property ) : string | ||
rootType | ModelType | |
property | string | |
return | string |
protected static GetSourceLabel ( ModelType rootType, string source ) : string | ||
rootType | ModelType | |
source | string | |
return | string |
protected OnInvoke ( ModelInstance root, |
||
root | ModelInstance | |
modelEvent | ||
return | void |
public PropertyRule ( string rootType, string property, ConditionType conditionType, RuleInvocationType invocationTypes ) : System | ||
rootType | string | |
property | string | |
conditionType | ConditionType | |
invocationTypes | RuleInvocationType | |
return | System |
public PropertyRule ( string rootType, string property, ConditionType>.Func |
||
rootType | string | |
property | string | |
conditionType | ConditionType>.Func | |
invocationTypes | RuleInvocationType | |
return | System |
protected PropertyRule ( string rootType, string property, RuleInvocationType invocationTypes ) : System | ||
rootType | string | |
property | string | |
invocationTypes | RuleInvocationType | |
return | System |