C# Class NHValModelValidators.Validation.NHibernateValidatorClientValidator

Simple validator class which overrides GetClientValidationRules to return a list of ModelClientValidationRules, which cause client side validation
Inheritance: System.Web.Mvc.ModelValidator
Datei anzeigen Open project: srkirkland/NHValModelValidators

Public Methods

Method Description
GetClientValidationRules ( ) : IEnumerable

Simply returns the supplied list of ModelClientValidationRule instances.

NHibernateValidatorClientValidator ( ModelMetadata metadata, System.Web.Mvc.ControllerContext controllerContext, List rules ) : System.Collections.Generic
Validate ( object container ) : IEnumerable

Returns an empty enumeration since this is not a server-side validator

Method Details

GetClientValidationRules() public method

Simply returns the supplied list of ModelClientValidationRule instances.
public GetClientValidationRules ( ) : IEnumerable
return IEnumerable

NHibernateValidatorClientValidator() public method

public NHibernateValidatorClientValidator ( ModelMetadata metadata, System.Web.Mvc.ControllerContext controllerContext, List rules ) : System.Collections.Generic
metadata ModelMetadata
controllerContext System.Web.Mvc.ControllerContext
rules List
return System.Collections.Generic

Validate() public method

Returns an empty enumeration since this is not a server-side validator
public Validate ( object container ) : IEnumerable
container object
return IEnumerable