C# 클래스 ExoRule.DataAnnotations.AnnotationsRuleProvider

Automatically creates rules based on the presence of data annotation attributes on properties of the specified model types.
상속: IRuleProvider
파일 보기 프로젝트 열기: vc3/ExoRule

공개 메소드들

메소드 설명
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