C# Class ExoRule.DataAnnotations.AnnotationsRuleProvider

Automatically creates rules based on the presence of data annotation attributes on properties of the specified model types.
Inheritance: IRuleProvider
Afficher le fichier Open project: vc3/ExoRule

Méthodes publiques

Méthode Description
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.

Method Details

AnnotationsRuleProvider() public méthode

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
Résultat System

AnnotationsRuleProvider() public méthode

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
Résultat System

GetRules() public méthode

Gets the set of precondition rules created by the provider.
public GetRules ( Type sourceType, string name ) : IEnumerable
sourceType System.Type
name string
Résultat IEnumerable