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)
|
public GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context ) : IEnumerable |
||
metadata | ModelMetadata | |
context | System.Web.Mvc.ControllerContext | |
return | IEnumerable |