AbstractValidationAttribute API Document
The base class for all the validation attributes. This class define a property that is used to retrieve the validtor that is used to validate the value of the property.
Constructors
AbstractValidationAttribute(IValidator validator)
Initializes a new instance of the Castle.ActiveRecord.AbstractValidationAttribute class.
| Parameter | Description |
|---|---|
| validator | The validator. |
AbstractValidationAttribute(IValidator validator, String errorMessage)
Initializes a new instance of the Castle.ActiveRecord.AbstractValidationAttribute class.
| Parameter | Description |
|---|---|
| validator | The validator. |
| errorMessage | The error message. |
Properties
| Name | Type | Description |
|---|---|---|
| Validator | IValidator | Gets the validator for this attribute. Each attribute that inherits from this class will have its own validtor. |