C# 클래스 ExoRule.Validation.RequiredRule

Applies conditions when the value of a ModelProperty is null or an empty list.
상속: PropertyRule
파일 보기 프로젝트 열기: vc3/ExoRule

공개 메소드들

메소드 설명
RequiredRule ( string rootType, string property ) : System
RequiredRule ( string rootType, string property, Error error ) : System
RequiredRule ( string rootType, string property, Error error, object requiredValue ) : System
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes ) : System
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, Error error ) : System
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, Error error, object requiredValue ) : System
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, object requiredValue ) : System
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, string errorMessage ) : System
RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, string errorMessage, object requiredValue ) : System
RequiredRule ( string rootType, string property, object requiredValue ) : System
RequiredRule ( string rootType, string property, string errorMessage ) : System
RequiredRule ( string rootType, string property, string errorMessage, object requiredValue ) : System

보호된 메소드들

메소드 설명
ConditionApplies ( ModelInstance root ) : bool

Determines whether the rule should attach its condition to the given ModelInstance.

비공개 메소드들

메소드 설명
CreateError ( string property ) : ConditionType>.Func

메소드 상세

ConditionApplies() 보호된 메소드

Determines whether the rule should attach its condition to the given ModelInstance.
protected ConditionApplies ( ModelInstance root ) : bool
root ModelInstance The model instance to evaluate the rule for.
리턴 bool

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property ) : System
rootType string
property string
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, Error error ) : System
rootType string
property string
error Error
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, Error error, object requiredValue ) : System
rootType string
property string
error Error
requiredValue object
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes ) : System
rootType string
property string
invocationTypes RuleInvocationType
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, Error error ) : System
rootType string
property string
invocationTypes RuleInvocationType
error Error
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, Error error, object requiredValue ) : System
rootType string
property string
invocationTypes RuleInvocationType
error Error
requiredValue object
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, object requiredValue ) : System
rootType string
property string
invocationTypes RuleInvocationType
requiredValue object
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, string errorMessage ) : System
rootType string
property string
invocationTypes RuleInvocationType
errorMessage string
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, RuleInvocationType invocationTypes, string errorMessage, object requiredValue ) : System
rootType string
property string
invocationTypes RuleInvocationType
errorMessage string
requiredValue object
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, object requiredValue ) : System
rootType string
property string
requiredValue object
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, string errorMessage ) : System
rootType string
property string
errorMessage string
리턴 System

RequiredRule() 공개 메소드

public RequiredRule ( string rootType, string property, string errorMessage, object requiredValue ) : System
rootType string
property string
errorMessage string
requiredValue object
리턴 System