C# Class ExoRule.Validation.RangeRule

Applies conditions when the value of a ModelProperty is not within a specified range.
Inheritance: PropertyRule
Afficher le fichier Open project: vc3/ExoRule

Méthodes publiques

Méthode Description
RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum ) : System
RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, Error error, RuleInvocationType invocationTypes ) : System
RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, RuleInvocationType invocationTypes ) : System
RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, string errorMessage ) : System
RangeRule ( string rootType, string property, ModelExpression minimum, ModelExpression maximum, string errorMessage ) : System
RangeRule ( string rootType, string property, string minExpression, string maxExpression, string errorMessage ) : System

Méthodes protégées

Méthode Description
ConditionApplies ( ModelInstance root ) : bool

Private Methods

Méthode Description
CreateError ( string property, IComparable minimum, IComparable maximum ) : ConditionType>.Func
SetRange ( IComparable minimum, IComparable maximum ) : void
SetRange ( ModelExpression minimum, ModelExpression maximum ) : void

Method Details

ConditionApplies() protected méthode

protected ConditionApplies ( ModelInstance root ) : bool
root ModelInstance
Résultat bool

RangeRule() public méthode

public RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum ) : System
rootType string
property string
minimum IComparable
maximum IComparable
Résultat System

RangeRule() public méthode

public RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, Error error, RuleInvocationType invocationTypes ) : System
rootType string
property string
minimum IComparable
maximum IComparable
error Error
invocationTypes RuleInvocationType
Résultat System

RangeRule() public méthode

public RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, RuleInvocationType invocationTypes ) : System
rootType string
property string
minimum IComparable
maximum IComparable
invocationTypes RuleInvocationType
Résultat System

RangeRule() public méthode

public RangeRule ( string rootType, string property, IComparable minimum, IComparable maximum, string errorMessage ) : System
rootType string
property string
minimum IComparable
maximum IComparable
errorMessage string
Résultat System

RangeRule() public méthode

public RangeRule ( string rootType, string property, ModelExpression minimum, ModelExpression maximum, string errorMessage ) : System
rootType string
property string
minimum ModelExpression
maximum ModelExpression
errorMessage string
Résultat System

RangeRule() public méthode

public RangeRule ( string rootType, string property, string minExpression, string maxExpression, string errorMessage ) : System
rootType string
property string
minExpression string
maxExpression string
errorMessage string
Résultat System