Example #1
0
        private AggregateTransformationNode BindAggregateToken(AggregateToken token)
        {
            var statements = new List <AggregateExpression>();

            foreach (var statementToken in token.Expressions)
            {
                statements.Add(BindAggregateExpressionToken(statementToken));
            }

            return(new AggregateTransformationNode(statements));
        }
Example #2
0
        private AggregateTransformationNode BindAggregateToken(AggregateToken token)
        {
            IEnumerable <AggregateTokenBase> aggregateTokens = MergeEntitySetAggregates(token.AggregateExpressions);
            List <AggregateExpressionBase>   statements      = new List <AggregateExpressionBase>();

            foreach (AggregateTokenBase statementToken in aggregateTokens)
            {
                statements.Add(BindAggregateExpressionToken(statementToken));
            }

            return(new AggregateTransformationNode(statements));
        }