C# 클래스 Rebel.Framework.Linq.CriteriaGeneration.ExpressionVisitors.FieldPredicateExpressionRewriter

A static class containing helper methods to rewrite expressions into FieldPredicateExpression trees where appropriate.
파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

ConvertToFieldPredicate() 공개 정적인 메소드

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.
리턴 System.Linq.Expressions.Expression

GetFieldSelector() 공개 정적인 메소드

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

GetFieldSelector() 공개 정적인 메소드

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.
리턴 FieldSelectorExpression

IsConvertibleBinary() 공개 정적인 메소드

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.
리턴 bool

NegateFieldPredicate() 공개 정적인 메소드

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.
리턴 FieldPredicateExpression