ValidateNotEmptyAttribute API Document
Validate that the property is not null or empty (for strings)
Constructors
ValidateNotEmptyAttribute()
Initializes a new instance of the Castle.ActiveRecord.ValidateNotEmptyAttribute class.
ValidateNotEmptyAttribute(String errorMessage)
Initializes a new instance of the Castle.ActiveRecord.ValidateNotEmptyAttribute class.
| Parameter | Description |
|---|---|
| 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. |