C# Класс 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.
Наследование: System.Web.Mvc.DataAnnotationsModelValidatorProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ExpressiveAnnotationsModelValidatorProvider ( ) : System

Initializes a new instance of the ExpressiveAnnotationsModelValidatorProvider class.

Защищенные методы

Метод Описание
GetValidators ( ModelMetadata metadata, System.Web.Mvc.ControllerContext context, IEnumerable attributes ) : IEnumerable

Gets a list of validators.

Описание методов

ExpressiveAnnotationsModelValidatorProvider() публичный Метод

Initializes a new instance of the ExpressiveAnnotationsModelValidatorProvider class.
public ExpressiveAnnotationsModelValidatorProvider ( ) : System
Результат System

GetValidators() защищенный Метод

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.
Результат IEnumerable