C# 클래스 ExoRule.Validation.CompareRule

상속: PropertyRule
파일 보기 프로젝트 열기: vc3/ExoRule 1 사용 예제들

공개 메소드들

메소드 설명
CompareRule ( string rootType, string property, string compareSource, CompareOperator compareOperator ) : System

Creates a new instance of CompareRule for the specified property.

CompareRule ( string rootType, string property, string compareSource, CompareOperator compareOperator, Error error, RuleInvocationType invocationTypes ) : System

Creates a new instance of CompareRule for the specified property.

CompareRule ( string rootType, string property, string compareSource, CompareOperator compareOperator, RuleInvocationType invocationTypes ) : System

Creates a new instance of CompareRule for the specified property.

CompareRule ( string rootType, string property, string compareSource, CompareOperator compareOperator, string errorMessage ) : System

Creates a new instance of CompareRule for the specified property.

보호된 메소드들

메소드 설명
Compare ( object sourceValue, CompareOperator compareOperator, object compareValue ) : bool?

Determines whether the comparison conditions are met by the given source value and compare value.

ConditionApplies ( ModelInstance root ) : bool

Determines whether the value of the property is valid relative to the value of a comparison property.

비공개 메소드들

메소드 설명
CreateError ( string property, string compareSource, CompareOperator compareOperator ) : ConditionType>.Func
ValidateRuleCriteria ( ) : void

메소드 상세

Compare() 보호된 정적인 메소드

Determines whether the comparison conditions are met by the given source value and compare value.
protected static Compare ( object sourceValue, CompareOperator compareOperator, object compareValue ) : bool?
sourceValue object The source value.
compareOperator CompareOperator The comparison operator.
compareValue object The compare value.
리턴 bool?

CompareRule() 공개 메소드

Creates a new instance of CompareRule for the specified property.
public CompareRule ( string rootType, string property, string compareSource, CompareOperator compareOperator ) : System
rootType string
property string
compareSource string
compareOperator CompareOperator
리턴 System

CompareRule() 공개 메소드

Creates a new instance of CompareRule for the specified property.
public CompareRule ( string rootType, string property, string compareSource, CompareOperator compareOperator, Error error, RuleInvocationType invocationTypes ) : System
rootType string
property string
compareSource string
compareOperator CompareOperator
error Error
invocationTypes RuleInvocationType
리턴 System

CompareRule() 공개 메소드

Creates a new instance of CompareRule for the specified property.
public CompareRule ( string rootType, string property, string compareSource, CompareOperator compareOperator, RuleInvocationType invocationTypes ) : System
rootType string
property string
compareSource string
compareOperator CompareOperator
invocationTypes RuleInvocationType
리턴 System

CompareRule() 공개 메소드

Creates a new instance of CompareRule for the specified property.
public CompareRule ( string rootType, string property, string compareSource, CompareOperator compareOperator, string errorMessage ) : System
rootType string
property string
compareSource string
compareOperator CompareOperator
errorMessage string
리턴 System

ConditionApplies() 보호된 메소드

Determines whether the value of the property is valid relative to the value of a comparison property.
protected ConditionApplies ( ModelInstance root ) : bool
root ModelInstance
리턴 bool