コード例 #1
0
ファイル: AggregateRewriter.cs プロジェクト: sprucemedia/oinq
 // internal static fields
 internal static IEnumerable<AggregateSubqueryExpression> Gather(Expression expression)
 {
     var gatherer = new AggregateGatherer();
     gatherer.Visit(expression);
     return gatherer._aggregates;
 }
コード例 #2
0
ファイル: AggregateRewriter.cs プロジェクト: rondoo/framework
 internal static List<AggregateRequestsExpression> Gather(Expression expression)
 {
     AggregateGatherer gatherer = new AggregateGatherer();
     gatherer.Visit(expression);
     return gatherer.aggregates;
 }
コード例 #3
0
 private AggregateRewriter(Expression expr)
 {
     this.map    = new Dictionary <AggregateSubqueryExpression, Expression>();
     this.lookup = AggregateGatherer.Gather(expr).ToLookup(a => a.GroupByAlias);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 private DbAggregateRewriter(QueryLanguage language, Expression expr)
 {
     this.language = language;
     this.map      = new Dictionary <DbAggregateSubqueryExpression, Expression>();
     this.lookup   = AggregateGatherer.Gather(expr).ToLookup(a => a.GroupByAlias);
 }
コード例 #6
0
 private AggregateRewriter(Expression expr)
 {
     this.lookup = AggregateGatherer.Gather(expr).ToLookup(a => a.GroupByAlias);
 }
コード例 #7
0
 internal static List<DbAggregateSubqueryExpression> Gather(Expression expression)
 {
     AggregateGatherer gatherer = new AggregateGatherer();
     gatherer.Visit(expression);
     return gatherer.aggregates;
 }