C# Class ExpressiveAnnotations.MvcUnobtrusive.Providers.ExpressiveAnnotationsModelValidatorProvider

Data annotations validator provider which automatically registers adapters for expressive validation attributes, i.e. ExpressiveAttribute, and additionally respects their processing priorities (if ExpressiveAttribute.Priority is specified) when validation is executed.
Attributes with highest priority (lowest value) will be processed in first place. Attributes without explicitly proivided priorities will be processed later, without any specific order.
Inheritance: System.Web.Mvc.DataAnnotationsModelValidatorProvider
Afficher le fichier Open project: jwaliszko/ExpressiveAnnotations Class Usage Examples

Méthodes publiques

Méthode Description
ExpressiveAnnotationsModelValidatorProvider ( ) : System

Initializes a new instance of the ExpressiveAnnotationsModelValidatorProvider class.

Méthodes protégées

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

Gets a list of validators.

Method Details

ExpressiveAnnotationsModelValidatorProvider() public méthode

Initializes a new instance of the ExpressiveAnnotationsModelValidatorProvider class.
public ExpressiveAnnotationsModelValidatorProvider ( ) : System
Résultat System

GetValidators() protected méthode

Gets a list of validators.
protected GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IEnumerable attributes ) : IEnumerable
metadata ModelMetadata The metadata.
context System.Web.Mvc.ControllerContext The context.
attributes IEnumerable The list of validation attributes.
Résultat IEnumerable