C# Class ServiceStack.FluentValidation.Validators.PropertyValidator

Inheritance: IPropertyValidator
Afficher le fichier Open project: ServiceStack/ServiceStack

Méthodes publiques

Méthode Description
Validate ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : IEnumerable

Méthodes protégées

Méthode Description
CreateValidationError ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : ValidationFailure

Creates an error validation result for this validator.

IsValid ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : bool
PropertyValidator ( Expression errorMessageResourceSelector, string errorCode ) : System
PropertyValidator ( string errorMessageResourceName, Type errorMessageResourceType, string errorCode ) : System
PropertyValidator ( string errorMessage, string errorCode ) : System

Method Details

CreateValidationError() protected méthode

Creates an error validation result for this validator.
protected CreateValidationError ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : ValidationFailure
context ServiceStack.FluentValidation.Validators.PropertyValidatorContext The validator context
Résultat ValidationFailure

IsValid() protected abstract méthode

protected abstract IsValid ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : bool
context ServiceStack.FluentValidation.Validators.PropertyValidatorContext
Résultat bool

PropertyValidator() protected méthode

protected PropertyValidator ( Expression errorMessageResourceSelector, string errorCode ) : System
errorMessageResourceSelector Expression
errorCode string
Résultat System

PropertyValidator() protected méthode

protected PropertyValidator ( string errorMessageResourceName, Type errorMessageResourceType, string errorCode ) : System
errorMessageResourceName string
errorMessageResourceType System.Type
errorCode string
Résultat System

PropertyValidator() protected méthode

protected PropertyValidator ( string errorMessage, string errorCode ) : System
errorMessage string
errorCode string
Résultat System

Validate() public méthode

public Validate ( ServiceStack.FluentValidation.Validators.PropertyValidatorContext context ) : IEnumerable
context ServiceStack.FluentValidation.Validators.PropertyValidatorContext
Résultat IEnumerable