RequiredValidator Class Breeze.sharp
Validator implementation to check that a property is not set to null. Special handling for empty strings is supported.
Inheritance Hierarchy

SystemObject
  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

public class RequiredValidator : Validator

The RequiredValidator type exposes the following members.

Constructors

  NameDescription
Public methodRequiredValidator
Ctor.
Top
Methods

  NameDescription
Public methodEquals (Inherited from Internable.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetErrorMessage
Provides the error message associated with a failure of this validator.
(Overrides ValidatorGetErrorMessage(ValidationContext).)
Public methodGetHashCode (Inherited from Internable.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodValidate
Performs validation given a specified context.
(Inherited from Validator.)
Protected methodValidateCore
Provides the core validation logic to this validator.
(Overrides ValidatorValidateCore(ValidationContext).)
Top
Properties

  NameDescription
Public propertyStatic memberDefaultTreatEmptyStringAsNull
Public propertyLocalizedKey (Inherited from Validator.)
Public propertyLocalizedMessage (Inherited from Validator.)
Public propertyName (Inherited from Internable.)
Public propertyTreatEmptyStringAsNull
Top
See Also

Reference