Class RelativeIdentifier
A manifest model class that represents the relative identifier of a rule, within the context of another validation rule.
Inheritance
Inherited Members
Namespace: CSF.Validation.ManifestModel
Assembly: CSF.Validation.Abstractions.dll
Syntax
public class RelativeIdentifier
Remarks
This type roughly corresponds to RelativeRuleIdentifier. The manifest model classes are simplified when compared with the validation manifest and offer only a subset of functionality. Importantly though, manifest model classes such as this are suitable for easy serialization to/from various data formats, such as JSON or relational database tables.
For more information about when and how to use the manifest model, see the article Using the Manifest Model
Properties
| Improve this Doc View SourceAncestorLevels
Gets or sets the number of levels of ancestry (within the parent/child validation hierarchy) which must be traversed from the 'current' rule, in order to reach the validator which contains the identified rule.
Declaration
public int AncestorLevels { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MemberName
Where the referenced rule is for a member of a value/object, this property gets or sets the member name.
Declaration
public string MemberName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RuleName
Gets or sets an optional name for the rule, which uniquely identifies it from other rules of the same type upon the same validated value.
Declaration
public string RuleName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RuleTypeName
Gets or sets the type name of the validation rule logic class.
Declaration
public string RuleTypeName { get; set; }
Property Value
Type | Description |
---|---|
System.String |