// internal static fields internal static IEnumerable<AggregateSubqueryExpression> Gather(Expression expression) { var gatherer = new AggregateGatherer(); gatherer.Visit(expression); return gatherer._aggregates; }
internal static List<AggregateRequestsExpression> Gather(Expression expression) { AggregateGatherer gatherer = new AggregateGatherer(); gatherer.Visit(expression); return gatherer.aggregates; }
private AggregateRewriter(Expression expr) { this.map = new Dictionary <AggregateSubqueryExpression, Expression>(); this.lookup = AggregateGatherer.Gather(expr).ToLookup(a => a.GroupByAlias); }
private AggregateRewriter(IDialect dialect, Expression expr) { this.dialect = dialect; this.map = new Dictionary <AggregateSubqueryExpression, Expression>(); this.lookup = AggregateGatherer.Gather(expr).ToLookup(a => a.GroupByAlias, TableAlias.Comparer); }
private DbAggregateRewriter(QueryLanguage language, Expression expr) { this.language = language; this.map = new Dictionary <DbAggregateSubqueryExpression, Expression>(); this.lookup = AggregateGatherer.Gather(expr).ToLookup(a => a.GroupByAlias); }
private AggregateRewriter(Expression expr) { this.lookup = AggregateGatherer.Gather(expr).ToLookup(a => a.GroupByAlias); }
internal static List<DbAggregateSubqueryExpression> Gather(Expression expression) { AggregateGatherer gatherer = new AggregateGatherer(); gatherer.Visit(expression); return gatherer.aggregates; }