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
Mostrar archivo Open project: vc3/ExoRule

Public Methods

Method 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 method

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
return System

AnnotationsRuleProvider() public method

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
return System

GetRules() public method

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