Validator implementation to check that a property is not set to null.
Special handling for empty strings is supported.
Inheritance Hierarchy
Breeze.SharpInternable
Breeze.SharpValidator
Breeze.SharpRequiredValidator
Namespace: Breeze.Sharp
Assembly: Breeze.Sharp (in Breeze.Sharp.dll) Version: 0.6.0.5 (0.6.0.5)
Syntax
The RequiredValidator type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| RequiredValidator |
Ctor.
|
Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Internable.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| GetErrorMessage |
Provides the error message associated with a failure of this validator.
(Overrides ValidatorGetErrorMessage(ValidationContext).) | |
| GetHashCode | (Inherited from Internable.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) | |
| Validate |
Performs validation given a specified context.
(Inherited from Validator.) | |
| ValidateCore |
Provides the core validation logic to this validator.
(Overrides ValidatorValidateCore(ValidationContext).) |
Properties
| Name | Description | |
|---|---|---|
| DefaultTreatEmptyStringAsNull | ||
| LocalizedKey | (Inherited from Validator.) | |
| LocalizedMessage | (Inherited from Validator.) | |
| Name | (Inherited from Internable.) | |
| TreatEmptyStringAsNull |
See Also