Class Rule
A manifest model class that represents a validation rule for a Value.
Inheritance
Inherited Members
Namespace: CSF.Validation.ManifestModel
Assembly: CSF.Validation.Abstractions.dll
Syntax
public class Rule
Remarks
This type roughly corresponds to ManifestRule. 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 SourceDependencies
Gets or sets a collection of identifiers of dependencies for the current rule.
Declaration
public ICollection<RelativeIdentifier> Dependencies { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<RelativeIdentifier> |
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 |
RulePropertyValues
Gets or sets a dictionary which indicates property values to be set upon the rule instance after it is constructed. This allows simple configuration/parameterisation of rule types.
Declaration
public IDictionary<string, object> RulePropertyValues { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
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 |