ValidateRegExpAttribute API Document
Validate that the property match the given regular expression
Constructors
ValidateRegExpAttribute(String pattern)
Initializes a new instance of the Castle.ActiveRecord.ValidateRegExpAttribute class.
| Parameter | Description |
|---|---|
| pattern | The pattern. |
ValidateRegExpAttribute(String pattern, String errorMessage)
Initializes a new instance of the Castle.ActiveRecord.ValidateRegExpAttribute class.
| Parameter | Description |
|---|---|
| pattern | The pattern. |
| 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. |