C# Class Remotion.Linq.SqlBackend.MappingResolution.GroupAggregateSimplifier

Provides functionality to simplify sub-statements that contain an AggregateExpressionNode aggregating over the elements of a grouping. The sub-statements must be resolved before they can be simplified.
Inheritance: IGroupAggregateSimplifier
显示文件 Open project: re-motion/Relinq-SqlBackend Class Usage Examples

Public Methods

Method Description
GroupAggregateSimplifier ( IMappingResolutionStage stage, IMappingResolutionContext context ) : System
IsSimplifiableGroupAggregate ( SqlStatement resolvedSqlStatement ) : bool
SimplifyIfPossible ( SqlSubStatementExpression subStatementExpression, Expression unresolvedSelectProjection ) : Expression

Private Methods

Method Description
FindAggregationExpression ( Expression expression ) : AggregationExpression

Method Details

GroupAggregateSimplifier() public method

public GroupAggregateSimplifier ( IMappingResolutionStage stage, IMappingResolutionContext context ) : System
stage IMappingResolutionStage
context IMappingResolutionContext
return System

IsSimplifiableGroupAggregate() public method

public IsSimplifiableGroupAggregate ( SqlStatement resolvedSqlStatement ) : bool
resolvedSqlStatement Remotion.Linq.SqlBackend.SqlStatementModel.SqlStatement
return bool

SimplifyIfPossible() public method

public SimplifyIfPossible ( SqlSubStatementExpression subStatementExpression, Expression unresolvedSelectProjection ) : Expression
subStatementExpression Remotion.Linq.SqlBackend.SqlStatementModel.SqlSubStatementExpression
unresolvedSelectProjection System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression