C# Class NHValModelValidators.Validation.NHibernateValidatorProvider

Server side validator provider for NHVal
Inheritance: System.Web.Mvc.ModelValidatorProvider
Show file Open project: srkirkland/NHValModelValidators

Public Methods

Method Description
GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable

Returns model validators for each class that can be validated. When this method is called with a non-class modelType, nothing is added to the yield return (this prevents us from validating the same properties several times)

Method Details

GetValidators() public method

Returns model validators for each class that can be validated. When this method is called with a non-class modelType, nothing is added to the yield return (this prevents us from validating the same properties several times)
public GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable
metadata ModelMetadata
context System.Web.Mvc.ControllerContext
return IEnumerable