C# Класс ExoRule.DataAnnotations.AnnotationsRuleProvider

Automatically creates rules based on the presence of data annotation attributes on properties of the specified model types.
Наследование: IRuleProvider
Показать файл Открыть проект

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

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

Automatically creates property validation rules for the specified ModelType instances based on data annotation attributes associated with properties declared on each type.

AnnotationsRuleProvider ( IEnumerable types ) : System

Automatically creates property validation rules for the specified ModelType instances based on data annotation attributes associated with properties declared on each type.

GetRules ( Type sourceType, string name ) : IEnumerable

Gets the set of precondition rules created by the provider.

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

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

Automatically creates property validation rules for the specified ModelType instances based on data annotation attributes associated with properties declared on each type.
public AnnotationsRuleProvider ( ) : System
Результат System

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

Automatically creates property validation rules for the specified ModelType instances based on data annotation attributes associated with properties declared on each type.
public AnnotationsRuleProvider ( IEnumerable types ) : System
types IEnumerable
Результат System

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

Gets the set of precondition rules created by the provider.
public GetRules ( Type sourceType, string name ) : IEnumerable
sourceType System.Type
name string
Результат IEnumerable