コード例 #1
0
 protected virtual Expression VisitAggregateSubquery(AggregateSubqueryExpression aggregateSubquery)
 {
     Expression e = Visit(aggregateSubquery.AggregateAsSubquery);
     ScalarExpression subquery = (ScalarExpression)e;
     if (subquery != aggregateSubquery.AggregateAsSubquery)
         return new AggregateSubqueryExpression(aggregateSubquery.GroupByAlias, aggregateSubquery.AggregateInGroupSelect, subquery);
     return aggregateSubquery;
 }
コード例 #2
0
        protected override Expression VisitAggregateSubquery(AggregateSubqueryExpression aggregate)
        {
            Expression mapped;
            if (_map.TryGetValue(aggregate, out mapped))
                return mapped;

            return Visit(aggregate.AggregateAsSubquery);
        }
コード例 #3
0
        protected virtual Expression VisitAggregateSubquery(AggregateSubqueryExpression aggregateSubquery)
        {
            Expression       e        = Visit(aggregateSubquery.AggregateAsSubquery);
            ScalarExpression subquery = (ScalarExpression)e;

            if (subquery != aggregateSubquery.AggregateAsSubquery)
            {
                return(new AggregateSubqueryExpression(aggregateSubquery.GroupByAlias, aggregateSubquery.AggregateInGroupSelect, subquery));
            }
            return(aggregateSubquery);
        }
コード例 #4
0
ファイル: FieldProjector.cs プロジェクト: rhwy/fluent-mongo
 protected override Expression VisitAggregateSubquery(AggregateSubqueryExpression aggregateSubquery)
 {
     return aggregateSubquery;
 }
コード例 #5
0
 protected override Expression VisitAggregateSubquery(AggregateSubqueryExpression aggregate)
 {
     _aggregates.Add(aggregate);
     return base.VisitAggregateSubquery(aggregate);
 }
コード例 #6
0
 protected virtual bool CompareAggregateSubquery(AggregateSubqueryExpression a, AggregateSubqueryExpression b)
 {
     return(Compare(a.AggregateAsSubquery, b.AggregateAsSubquery) &&
            Compare(a.AggregateInGroupSelect, b.AggregateInGroupSelect) &&
            a.GroupByAlias == b.GroupByAlias);
 }
コード例 #7
0
 protected virtual bool CompareAggregateSubquery(AggregateSubqueryExpression a, AggregateSubqueryExpression b)
 {
     return Compare(a.AggregateAsSubquery, b.AggregateAsSubquery)
         && Compare(a.AggregateInGroupSelect, b.AggregateInGroupSelect)
         && a.GroupByAlias == b.GroupByAlias;
 }