C# Class Kooboo.Commerce.Rules.Conditions.ConditionEvaluator

Afficher le fichier Open project: Kooboo/Ecommerce Class Usage Examples

Méthodes publiques

Méthode Description
Evaluate ( Condition condition, object dataContext ) : bool
Evaluate ( Expression expression, object dataContext ) : bool
Evaluate ( IEnumerable conditions, object dataContext ) : bool
Evaluate ( string expression, object dataContext ) : bool

Check if the specified condition can be fullfilled by the context.

Method Details

Evaluate() public méthode

public Evaluate ( Condition condition, object dataContext ) : bool
condition Condition
dataContext object
Résultat bool

Evaluate() public méthode

public Evaluate ( Expression expression, object dataContext ) : bool
expression Kooboo.Commerce.Rules.Conditions.Expressions.Expression
dataContext object
Résultat bool

Evaluate() public méthode

public Evaluate ( IEnumerable conditions, object dataContext ) : bool
conditions IEnumerable
dataContext object
Résultat bool

Evaluate() public méthode

Check if the specified condition can be fullfilled by the context.
public Evaluate ( string expression, object dataContext ) : bool
expression string The condition expression. e.g., Param1 > 18 AND Param2 == "Value"
dataContext object The contextual object.
Résultat bool