C# Class NHValModelValidators.Validation.NHibernateValidatorClientProvider

Inheritance: System.Web.Mvc.AssociatedValidatorProvider
Exibir arquivo Open project: srkirkland/NHValModelValidators

Public Methods

Method Description
NHibernateValidatorClientProvider ( ) : System

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

Protected Methods

Method 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 method

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
return IEnumerable

MessageOrDefault() protected method

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

NHibernateValidatorClientProvider() public method

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