C# 클래스 ExoRule.Validation.AllowedValuesRule

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

공개 메소드들

메소드 설명
AllowedValuesRule ( string rootType, string property, LambdaExpression source, Error error, RuleInvocationType invocationTypes, bool ignoreValidation = false ) : System
AllowedValuesRule ( string rootType, string property, LambdaExpression source, RuleInvocationType invocationTypes, bool ignoreValidation = false ) : System
AllowedValuesRule ( string rootType, string property, LambdaExpression source, bool ignoreValidation = false ) : System
AllowedValuesRule ( string rootType, string property, LambdaExpression source, string errorMessage, bool ignoreValidation = false ) : System
AllowedValuesRule ( string rootType, string property, string source, Error error, RuleInvocationType invocationTypes, bool ignoreValidation = false ) : System
AllowedValuesRule ( string rootType, string property, string source, RuleInvocationType invocationTypes, bool ignoreValidation = false ) : System
AllowedValuesRule ( string rootType, string property, string source, bool ignoreValidation = false ) : System
AllowedValuesRule ( string rootType, string property, string source, string errorMessage, bool ignoreValidation = false ) : System
GetAllowedValues ( ModelInstance root, ModelProperty property ) : IEnumerable

Gets the set of allowed values for the specified instance and property.

보호된 메소드들

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

비공개 메소드들

메소드 설명
CreateError ( string property ) : ConditionType>.Func
GetAllowedValues ( ModelInstance root ) : IEnumerable
InitializeSource ( string source, LambdaExpression expression ) : void

메소드 상세

AllowedValuesRule() 공개 메소드

public AllowedValuesRule ( string rootType, string property, LambdaExpression source, Error error, RuleInvocationType invocationTypes, bool ignoreValidation = false ) : System
rootType string
property string
source System.Linq.Expressions.LambdaExpression
error Error
invocationTypes RuleInvocationType
ignoreValidation bool
리턴 System

AllowedValuesRule() 공개 메소드

public AllowedValuesRule ( string rootType, string property, LambdaExpression source, RuleInvocationType invocationTypes, bool ignoreValidation = false ) : System
rootType string
property string
source System.Linq.Expressions.LambdaExpression
invocationTypes RuleInvocationType
ignoreValidation bool
리턴 System

AllowedValuesRule() 공개 메소드

public AllowedValuesRule ( string rootType, string property, LambdaExpression source, bool ignoreValidation = false ) : System
rootType string
property string
source System.Linq.Expressions.LambdaExpression
ignoreValidation bool
리턴 System

AllowedValuesRule() 공개 메소드

public AllowedValuesRule ( string rootType, string property, LambdaExpression source, string errorMessage, bool ignoreValidation = false ) : System
rootType string
property string
source System.Linq.Expressions.LambdaExpression
errorMessage string
ignoreValidation bool
리턴 System

AllowedValuesRule() 공개 메소드

public AllowedValuesRule ( string rootType, string property, string source, Error error, RuleInvocationType invocationTypes, bool ignoreValidation = false ) : System
rootType string
property string
source string
error Error
invocationTypes RuleInvocationType
ignoreValidation bool
리턴 System

AllowedValuesRule() 공개 메소드

public AllowedValuesRule ( string rootType, string property, string source, RuleInvocationType invocationTypes, bool ignoreValidation = false ) : System
rootType string
property string
source string
invocationTypes RuleInvocationType
ignoreValidation bool
리턴 System

AllowedValuesRule() 공개 메소드

public AllowedValuesRule ( string rootType, string property, string source, bool ignoreValidation = false ) : System
rootType string
property string
source string
ignoreValidation bool
리턴 System

AllowedValuesRule() 공개 메소드

public AllowedValuesRule ( string rootType, string property, string source, string errorMessage, bool ignoreValidation = false ) : System
rootType string
property string
source string
errorMessage string
ignoreValidation bool
리턴 System

ConditionApplies() 보호된 메소드

protected ConditionApplies ( ModelInstance root ) : bool
root ModelInstance
리턴 bool

GetAllowedValues() 공개 정적인 메소드

Gets the set of allowed values for the specified instance and property.
public static GetAllowedValues ( ModelInstance root, ModelProperty property ) : IEnumerable
root ModelInstance
property ModelProperty
리턴 IEnumerable