2 types derived from DbAggregate
System.Data.Entity (2)
System\Data\Common\CommandTrees\Aggregates.cs (2)
58public sealed class DbGroupAggregate : DbAggregate 70public sealed class DbFunctionAggregate : DbAggregate
43 references to DbAggregate
System.Data.Entity (43)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (4)
139/// Convenience method to visit each <see cref="DbAggregate"/> in the list, if the list is non-null. 143public virtual void VisitAggregateList(IList<DbAggregate> aggregates) 153/// Convenience method to visit the specified <see cref="DbAggregate"/>. 157public virtual void VisitAggregate(DbAggregate aggregate)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (4)
125protected virtual DbAggregate VisitAggregate(DbAggregate aggregate) 964IList<DbAggregate> newAggs = this.VisitList<DbAggregate>(expression.Aggregates, this.VisitAggregate);
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (5)
66public static KeyValuePair<string, DbAggregate> As(this DbAggregate value, string alias) 68return new KeyValuePair<string, DbAggregate>(alias, value); 477public static DbGroupByExpression GroupBy(this DbGroupExpressionBinding input, IEnumerable<KeyValuePair<string, DbExpression>> keys, IEnumerable<KeyValuePair<string, DbAggregate>> aggregates) 480System.Collections.ObjectModel.ReadOnlyCollection<DbAggregate> validAggregates;
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (2)
561internal static TypeUsage ValidateGroupBy(DbGroupExpressionBinding input, IEnumerable<KeyValuePair<string, DbExpression>> keys, IEnumerable<KeyValuePair<string, DbAggregate>> aggregates, out DbExpressionList validKeys, out System.Collections.ObjectModel.ReadOnlyCollection<DbAggregate> validAggregates)
System\Data\Common\CommandTrees\Internal\ExpressionDumper.cs (1)
766foreach (DbAggregate agg in e.Aggregates)
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (1)
639foreach (var a in e.Aggregates)
System\Data\Common\CommandTrees\RelationalExpressions.cs (4)
235private readonly System.Collections.ObjectModel.ReadOnlyCollection<DbAggregate> _aggregates; 240System.Collections.ObjectModel.ReadOnlyCollection<DbAggregate> aggregates) 264/// Gets an <see cref="DbAggregate"/> list that provides the aggregates to apply. 266public IList<DbAggregate> Aggregates { get { return _aggregates; } }
System\Data\Common\EntitySql\SemanticAnalyzer.cs (4)
3726List<KeyValuePair<string, DbAggregate>> aggregates = new List<KeyValuePair<string, DbAggregate>>(sr.CurrentScopeRegion.GroupAggregateInfos.Count); 3733aggregates.Add(new KeyValuePair<string, DbAggregate>( 3752aggregates.Add(new KeyValuePair<string, DbAggregate>(groupAggregateVarRef.VariableName, groupAggregateDefinition));
System\Data\Common\EntitySql\SemanticResolver.cs (2)
1462internal void AttachToAstNode(string aggregateName, DbAggregate aggregateDefinition) 1469internal DbAggregate AggregateDefinition;
System\Data\Objects\ELinq\MethodCallTranslator.cs (3)
2760List<KeyValuePair<string, DbAggregate>> aggregates = new List<KeyValuePair<string, DbAggregate>>(); 2762aggregates.Add(new KeyValuePair<string, DbAggregate>(GroupColumnName, sourceGroupBinding.GroupAggregate));
System\Data\Query\PlanCompiler\CTreeGenerator.cs (5)
1735Dictionary<Var, DbAggregate> aggMap = new Dictionary<Var,DbAggregate>(); 1780List<KeyValuePair<string, DbAggregate>> aggregates = new List<KeyValuePair<string, DbAggregate>>(); 1787aggregates.Add(new KeyValuePair<string, DbAggregate>(aggColName, aggMap[aggVar]));
System\Data\Query\PlanCompiler\ITreeGenerator.cs (1)
2499DbAggregate agg = e.Aggregates[idx];
System\Data\SqlClient\SqlGen\Sql8ConformanceChecker.cs (3)
104private bool VisitAggregate(DbAggregate aggregate) 167private bool VisitAggregateList(IList<DbAggregate> list) 169return VisitList<DbAggregate>(VisitAggregate, list);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (4)
1510foreach (DbAggregate aggregate in e.Aggregates) 2650private static SqlBuilder VisitAggregate(DbAggregate aggregate, object aggregateArgument) 4253static bool GroupByAggregatesNeedInnerQuery(IList<DbAggregate> aggregates, string inputVarRefName) 4255foreach (DbAggregate aggregate in aggregates)