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

A default implementation of an expression tree visitor designed to take an expression tree and rewrite it to the more simplified model supported by the Rebel Framework and its descendent persistence providers.
Inheritance: AbstractExpressionTreeVisitor
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
DefaultExpressionTreeVisitor ( AbstractQueryStructureBinder structureBinder ) : System.Linq.Expressions

Initializes a new instance of the DefaultExpressionTreeVisitor class.

RewriteToFieldPredicateTree ( Expression expressionToVisit ) : Expression

Rewrites the expression tree to a field predicate tree.

RewriteToFieldPredicateTree ( Expression expressionToVisit, AbstractQueryStructureBinder structureBinder ) : Expression

Rewrites the expression tree to a field predicate tree given an AbstractQueryStructureBinder implementation.

Method Details

DefaultExpressionTreeVisitor() public method

Initializes a new instance of the DefaultExpressionTreeVisitor class.
public DefaultExpressionTreeVisitor ( AbstractQueryStructureBinder structureBinder ) : System.Linq.Expressions
structureBinder Rebel.Framework.Linq.CriteriaGeneration.StructureMetadata.AbstractQueryStructureBinder The structure binder.
return System.Linq.Expressions

RewriteToFieldPredicateTree() public static method

Rewrites the expression tree to a field predicate tree.
public static RewriteToFieldPredicateTree ( Expression expressionToVisit ) : Expression
expressionToVisit System.Linq.Expressions.Expression The expression to visit.
return System.Linq.Expressions.Expression

RewriteToFieldPredicateTree() public static method

Rewrites the expression tree to a field predicate tree given an AbstractQueryStructureBinder implementation.
public static RewriteToFieldPredicateTree ( Expression expressionToVisit, AbstractQueryStructureBinder structureBinder ) : Expression
expressionToVisit System.Linq.Expressions.Expression The expression to visit.
structureBinder Rebel.Framework.Linq.CriteriaGeneration.StructureMetadata.AbstractQueryStructureBinder The structure binder.
return System.Linq.Expressions.Expression