C# Class Rebel.Framework.Linq.CriteriaGeneration.ExpressionVisitors.FieldPredicateExpressionRewriter

A static class containing helper methods to rewrite expressions into FieldPredicateExpression trees where appropriate.
Afficher le fichier Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Méthodes publiques

Méthode Description
ConvertToFieldPredicate ( BinaryExpression expression, AbstractQueryStructureBinder structureBinder ) : Expression

Converts a BinaryExpression to a field predicate expression, if supported and convertible.

GetFieldSelector ( Expression left, AbstractQueryStructureBinder structureBinder ) : FieldSelectorExpression
GetFieldSelector ( Expression left, AbstractQueryStructureBinder structureBinder, BindingSignatureSupport bindingSignatureSupport ) : FieldSelectorExpression

Gets a FieldSelectorExpression from an expression it the bindingSignatureSupport identifies it as supported.

IsConvertibleBinary ( BinaryExpression expression, AbstractQueryStructureBinder structureBinder ) : bool

Determines whether the supplied BinaryExpression is convertible to a binary in the context of the featureset of the Rebel Framework-supported expression tree.

NegateFieldPredicate ( FieldPredicateExpression fieldPredicateExpression ) : FieldPredicateExpression

Negates a field predicate, i.e. reverses its ValuePredicateType for example Equals will be switched to NotEquals.

Private Methods

Méthode Description
GetBindingSupport ( Expression left, AbstractQueryStructureBinder structureBinder ) : BindingSignatureSupport

Gets a BindingSignatureSupport from an expression.

GetSchemaSelector ( Expression left, AbstractQueryStructureBinder structureBinder, BindingSignatureSupport bindingSignatureSupport ) : SchemaSelectorExpression
UpdateValuePredicateType ( BindingSignatureSupport signatureSupport, BinaryExpression binaryExpression ) : void

Method Details

ConvertToFieldPredicate() public static méthode

Converts a BinaryExpression to a field predicate expression, if supported and convertible.
public static ConvertToFieldPredicate ( BinaryExpression expression, AbstractQueryStructureBinder structureBinder ) : Expression
expression System.Linq.Expressions.BinaryExpression The expression.
structureBinder Rebel.Framework.Linq.CriteriaGeneration.StructureMetadata.AbstractQueryStructureBinder The structure binder.
Résultat System.Linq.Expressions.Expression

GetFieldSelector() public static méthode

public static GetFieldSelector ( Expression left, AbstractQueryStructureBinder structureBinder ) : FieldSelectorExpression
left System.Linq.Expressions.Expression
structureBinder Rebel.Framework.Linq.CriteriaGeneration.StructureMetadata.AbstractQueryStructureBinder
Résultat FieldSelectorExpression

GetFieldSelector() public static méthode

Gets a FieldSelectorExpression from an expression it the bindingSignatureSupport identifies it as supported.
public static GetFieldSelector ( Expression left, AbstractQueryStructureBinder structureBinder, BindingSignatureSupport bindingSignatureSupport ) : FieldSelectorExpression
left System.Linq.Expressions.Expression The left.
structureBinder Rebel.Framework.Linq.CriteriaGeneration.StructureMetadata.AbstractQueryStructureBinder The structure binder.
bindingSignatureSupport Rebel.Framework.Linq.CriteriaGeneration.StructureMetadata.BindingSignatureSupport The binding signature support.
Résultat FieldSelectorExpression

IsConvertibleBinary() public static méthode

Determines whether the supplied BinaryExpression is convertible to a binary in the context of the featureset of the Rebel Framework-supported expression tree.
public static IsConvertibleBinary ( BinaryExpression expression, AbstractQueryStructureBinder structureBinder ) : bool
expression System.Linq.Expressions.BinaryExpression The expression.
structureBinder Rebel.Framework.Linq.CriteriaGeneration.StructureMetadata.AbstractQueryStructureBinder The structure binder.
Résultat bool

NegateFieldPredicate() public static méthode

Negates a field predicate, i.e. reverses its ValuePredicateType for example Equals will be switched to NotEquals.
public static NegateFieldPredicate ( FieldPredicateExpression fieldPredicateExpression ) : FieldPredicateExpression
fieldPredicateExpression FieldPredicateExpression The field predicate expression.
Résultat FieldPredicateExpression