C# Класс ExoRule.Validation.AllowedValuesRule

Applies conditions when the value of a ModelProperty is not an allowed value.
Наследование: PropertyRule
Показать файл Открыть проект

Открытые методы

Метод Описание
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