Click or drag to resize

QueryExpressionBuilder Class

Specific expression handler which evaluates JoinExpression nodes and converts them into a RelationCollectionExpression object or JoinResultExpression objects. It also handles SelectExpressions and reduces the tree. This has to be combined together in one evaluator because the joinExpression nodes can only be constructed if SelectExpressions (which can be one side of a join) can be reduced to full QueryExpressions. JoinResultExpressions are consumed by this same handler, if possible in the first take, into QueryExpressions. If the final query doesn't result in a QueryExpression, this class is used in a loop till it has resulted in a QueryExpression.
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlersGenericExpressionHandler
    SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlersQueryExpressionBuilder

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses.ExpressionHandlers
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public class QueryExpressionBuilder : GenericExpressionHandler

The QueryExpressionBuilder type exposes the following members.

Constructors
  NameDescription
Public methodQueryExpressionBuilder
Initializes a new instance of the QueryExpressionBuilder class.
Top
Properties
  NameDescription
Protected propertyFrameworkElementCreator
Gets the framework element creator.
(Inherited from GenericExpressionHandler.)
Protected propertyFunctionMappings
Gets the function mappings.
(Inherited from GenericExpressionHandler.)
Protected propertyGeneratedCodeElementCreator
Gets the generated code element creator.
(Inherited from GenericExpressionHandler.)
Protected propertyTrackedMappings
Gets the mappings of various objects defined during the process operations of the expression tree.
(Inherited from GenericExpressionHandler.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindFunctionMapping(MemberInfo)
Finds the function mapping associated with the property specified.
(Inherited from GenericExpressionHandler.)
Public methodFindFunctionMapping(MethodInfo)
Finds the function mapping associated with the method/function specified.
(Inherited from GenericExpressionHandler.)
Protected methodFindFunctionMapping(String, Type, Int32)
Finds the function mapping associated with the method/function specified.
(Inherited from GenericExpressionHandler.)
Protected methodFindGroupJoinExpressionAsCopy
Finds the group join expression using the alias of the right side. It then creates a copy of it (and its contents) so the caller can manipulate it.
(Inherited from GenericExpressionHandler.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHandleAggregateExpression
Handles the aggregate expression.
(Overrides GenericExpressionHandlerHandleAggregateExpression(AggregateExpression).)
Protected methodHandleAllAnyExpression
Handles all any expression.
(Overrides GenericExpressionHandlerHandleAllAnyExpression(AllAnyExpression).)
Protected methodHandleArrayIndexExpression
Handles the ArrayIndex expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleBinaryExpression
Handles the binary expression.
(Overrides GenericExpressionHandlerHandleBinaryExpression(BinaryExpression).)
Protected methodHandleBinaryExpressionArithmeticOrBitOperator
Handles the binary expression with arithmetic or bit operator.
(Overrides GenericExpressionHandlerHandleBinaryExpressionArithmeticOrBitOperator(BinaryExpression).)
Protected methodHandleBinaryExpressionBooleanOperator (Overrides GenericExpressionHandlerHandleBinaryExpressionBooleanOperator(BinaryExpression).)
Protected methodHandleConditionalExpression
Handles the conditional expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleConstantExpression
Handles the constant expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleContainsExpression
Handles the contains expression. A ContainsExpression is always about a source S which is a SetExpression and an operand O which is either an entity, constant or query.
(Overrides GenericExpressionHandlerHandleContainsExpression(ContainsExpression).)
Protected methodHandleDbFunctionCallExpression
Handles the DbFunctionCallExpression passed in
(Overrides GenericExpressionHandlerHandleDbFunctionCallExpression(DbFunctionCallExpression).)
Protected methodHandleDefaultIfEmptyExpression
Handles the default if empty expression.
(Overrides GenericExpressionHandlerHandleDefaultIfEmptyExpression(DefaultIfEmptyExpression).)
Protected methodHandleElementInitializer
Handles the element initializer.
(Inherited from GenericExpressionHandler.)
Protected methodHandleElementInitializerList
Handles the element initializer list.
(Inherited from GenericExpressionHandler.)
Protected methodHandleEntityExpression
Handles the entity expression.
(Overrides GenericExpressionHandlerHandleEntityExpression(EntityExpression).)
Protected methodHandleEntityFieldExpression
Handles the entity field expression.
(Overrides GenericExpressionHandlerHandleEntityFieldExpression(EntityFieldExpression).)
Protected methodHandleExceptIntersectExpression
Handles the except / intersect expression.
(Overrides GenericExpressionHandlerHandleExceptIntersectExpression(ExceptIntersectExpression).)
Protected methodHandleExcludeIncludeFieldsExpression
Handles the exclude include fields expression.
(Overrides GenericExpressionHandlerHandleExcludeIncludeFieldsExpression(ExcludeIncludeFieldsExpression).)
Public methodHandleExpression
Handles the expression.
(Overrides GenericExpressionHandlerHandleExpression(Expression).)
Protected methodHandleExpressionList
Handles the expression list.
(Inherited from GenericExpressionHandler.)
Protected methodHandleFilterExpression
Handles the filter expression specified
(Inherited from GenericExpressionHandler.)
Protected methodHandleGroupByExpression
Handles the group by expression.
(Overrides GenericExpressionHandlerHandleGroupByExpression(GroupByExpression).)
Protected methodHandleGroupByKeyReferenceExpression
Handles the group by key reference expression.
(Overrides GenericExpressionHandlerHandleGroupByKeyReferenceExpression(GroupByKeyReferenceExpression).)
Protected methodHandleGroupJoinExpression
Handles the groupjoin expression.
(Overrides GenericExpressionHandlerHandleGroupJoinExpression(GroupJoinExpression).)
Protected methodHandleInClauseExpression
Handles the in clause expression, which is an expression representing a call to Contains on a list of values.
(Overrides GenericExpressionHandlerHandleInClauseExpression(InClauseExpression).)
Protected methodHandleInMemoryEvalCandidateExpression
Handles the in memory eval candidate expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleInvocationExpression
Handles the invocation expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleJoinExpression
Handles the join expression.
(Overrides GenericExpressionHandlerHandleJoinExpression(JoinExpression).)
Protected methodHandleJoinResultExpression
Handles the JoinResult expression.
(Overrides GenericExpressionHandlerHandleJoinResultExpression(JoinResultExpression).)
Protected methodHandleLambdaExpression
Handles the lambda expression.
(Overrides GenericExpressionHandlerHandleLambdaExpression(LambdaExpression).)
Protected methodHandleLikeExpression
Handles the like expression.
(Overrides GenericExpressionHandlerHandleLikeExpression(LikeExpression).)
Protected methodHandleLinqExpressionAsSetExpression
Handles the LinqExpression as set expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleListInitExpression
Handles the list init expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleLLBLGenProExpressionExpression
Handles the LLBLGenProExpressionExpression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleMemberAssignment
Handles the member assignment.
(Overrides GenericExpressionHandlerHandleMemberAssignment(MemberAssignment).)
Protected methodHandleMemberBinding
Handles the member binding.
(Inherited from GenericExpressionHandler.)
Protected methodHandleMemberBindingList
Handles the member binding list.
(Inherited from GenericExpressionHandler.)
Protected methodHandleMemberExpression
Handles the member expression.
(Overrides GenericExpressionHandlerHandleMemberExpression(MemberExpression).)
Protected methodHandleMemberInitExpression
Handles the member init expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleMemberListBinding
Handles the member list binding.
(Inherited from GenericExpressionHandler.)
Protected methodHandleMemberMemberBinding
Handles the member member binding.
(Inherited from GenericExpressionHandler.)
Protected methodHandleMethodCallExpression
Handles the method call expression.
(Overrides GenericExpressionHandlerHandleMethodCallExpression(MethodCallExpression).)
Protected methodHandleNewArrayExpression
Handles the new array expression.
(Overrides GenericExpressionHandlerHandleNewArrayExpression(NewArrayExpression).)
Protected methodHandleNewExpression
Handles the NewExpression expression
(Overrides GenericExpressionHandlerHandleNewExpression(NewExpression).)
Protected methodHandleParameterExpression
Handles the parameter expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandlePathEdgeExpression
Handles the path edge expression.
(Overrides GenericExpressionHandlerHandlePathEdgeExpression(PathEdgeExpression).)
Protected methodHandlePlainSQLExpression
Handles the plain sql expression specified.
(Inherited from GenericExpressionHandler.)
Protected methodHandlePrefetchPathExpression
Handles the prefetch path expression.
(Overrides GenericExpressionHandlerHandlePrefetchPathExpression(PrefetchPathExpression).)
Protected methodHandleProjectionExpression
Handles the projection expression
(Overrides GenericExpressionHandlerHandleProjectionExpression(ProjectionExpression).)
Protected methodHandleQueryExpression
Handles the query expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleSelectExpression
Handles the select expression.
(Overrides GenericExpressionHandlerHandleSelectExpression(SelectExpression).)
Protected methodHandleSetReferenceExpression
Handles the set reference expression.
(Overrides GenericExpressionHandlerHandleSetReferenceExpression(SetReferenceExpression).)
Protected methodHandleShiftOperatorInExpression
Handles the shift operator in expression.
Protected methodHandleSortClauseExpression
Handles the sort clause expression into a QueryExpression without projection. THis is done by first producing a selectexpression which is then handled by the SelectExpression handler.
(Overrides GenericExpressionHandlerHandleSortClauseExpression(SortClauseExpression).)
Protected methodHandleTypeBinaryExpression
Handles the type binary expression.
(Overrides GenericExpressionHandlerHandleTypeBinaryExpression(TypeBinaryExpression).)
Protected methodHandleTypedViewExpression
Handles the typed view expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleUnaryArrayLength
Handles the length of the unary array.
(Inherited from GenericExpressionHandler.)
Protected methodHandleUnaryConvertExpression
Handles the unary convert expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleUnaryExpression
Handles the unary expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleUnaryNotExpression
Handles the unary expression.
(Overrides GenericExpressionHandlerHandleUnaryNotExpression(UnaryExpression).)
Protected methodHandleUnaryTypeAsExpression
Handles the unary type as expression.
(Inherited from GenericExpressionHandler.)
Protected methodHandleUnionList
Handles the specified unionlist and its contained set expressions. Will return a new list if one or more set expressions changed after handling.
(Inherited from GenericExpressionHandler.)
Protected methodHandleWhereExpression
Handles the where expression into a QueryExpression without projection. This is done by first producing a SelectExpression which is then handled by the SelectExpression handler.
(Overrides GenericExpressionHandlerHandleWhereExpression(WhereExpression).)
Protected methodMakeSet
Converts the expression passed in to a SetExpression, if it's not already a set.
(Inherited from GenericExpressionHandler.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodTraceLine
Traces the line.
(Inherited from GenericExpressionHandler.)
Protected methodTraceScopeEnd
Traces the scope end.
(Inherited from GenericExpressionHandler.)
Protected methodTraceScopeStart
Traces the scope start.
(Inherited from GenericExpressionHandler.)
Top
See Also