The Mindscape.LightSpeed.Validation namespace provides classes that are used to implement [Entity] validation.
Classes
| Class | Description | |
|---|---|---|
| ComparisonValidationRule |
Validates the target by comparing it to a given IComparable
using a supplied ComparisonOperator.
| |
| EmailAddressValidationRule |
Validates that the target is a valid email address.
| |
| FormatValidationRule |
Validates that the target conforms to a given format specified by a supplied
regular expression
| |
| LengthValidationRule |
Validates that the target is within the specified range (inclusive).
| |
| PresenceAssociationValidationRule |
Validates that an associated object is present.
| |
| PresenceValidationRule |
Validates that the target is present. i.e. Not null or empty.
| |
| ProviderDateRangeValidationRule |
Validates that the target is within the specified range (inclusive).
| |
| RangeValidationRule |
Validates that the target is within the specified range (inclusive).
| |
| UniqueValidationRule |
Validates that the target is unique.
| |
| UriValidationRule |
Validates that the target is a valid URI.
| |
| ValidateAttribute |
Allows custom validations to be applied.
| |
| ValidateComparisonAttribute |
Associates a ComparisonValidationRule with the attribute target.
| |
| ValidateEmailAddressAttribute |
Associates a EmailAddressValidationRule with the attribute target.
| |
| ValidateFormatAttribute |
Associates a FormatValidationRule with the attribute target.
| |
| ValidateLengthAttribute |
Associates a LengthValidationRule with the attribute target.
| |
| ValidatePresenceAttribute |
Associates a PresenceValidationRule with the attribute target.
| |
| ValidateRangeAttribute |
Associates a RangeValidationRule with the attribute target, validating
that a value is greater than the low value and less than the high value.
| |
| ValidateUniqueAttribute |
Associates a UniqueValidationRule with the attribute target.
| |
| ValidateUriAttribute |
Associates a UriValidationRule with the attribute target.
| |
| ValidationAttribute |
Base class for all validation attributes.
| |
| ValidationContext |
The context passed to a ValidationRule.
| |
| ValidationError |
Represents a single validation error.
| |
| ValidationErrorCollection |
A read-only, bindable collection of ValidationErrors.
| |
| ValidationException |
Represents an exception when a validator fails.
| |
| ValidationRule |
Base class for all validation rules.
|
Enumerations
| Enumeration | Description | |
|---|---|---|
| ComparisonOperator |
Operators used in a ComparisonValidationRule |