C# Class NHValModelValidators.Validation.NHibernateValidatorClientProvider

Inheritance: System.Web.Mvc.AssociatedValidatorProvider
Afficher le fichier Open project: srkirkland/NHValModelValidators

Méthodes publiques

Méthode Description
NHibernateValidatorClientProvider ( ) : System

ctor: Hook up the mappings between your attributes and model client validation rules

Méthodes protégées

Méthode Description
GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IEnumerable attributes ) : IEnumerable

Returns the validators for the given class metadata. This gets called for each property.

MessageOrDefault ( System.Web.Mvc.ModelClientValidationRule rule, string propertyName ) : string

Method Details

GetValidators() protected méthode

Returns the validators for the given class metadata. This gets called for each property.
protected GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IEnumerable attributes ) : IEnumerable
metadata ModelMetadata
context System.Web.Mvc.ControllerContext
attributes IEnumerable
Résultat IEnumerable

MessageOrDefault() protected méthode

protected MessageOrDefault ( System.Web.Mvc.ModelClientValidationRule rule, string propertyName ) : string
rule System.Web.Mvc.ModelClientValidationRule
propertyName string
Résultat string

NHibernateValidatorClientProvider() public méthode

ctor: Hook up the mappings between your attributes and model client validation rules
public NHibernateValidatorClientProvider ( ) : System
Résultat System