API Reference
Browse the REDB API documentation. Select a namespace or type from the tree on the left, or click on items below.
Search results for: GroupBy
Clear search
E128_GroupBySimple
redb.Examples.Examples
E129_GroupByFiltered
redb.Examples.Examples
E130_GroupByMultiKey
redb.Examples.Examples
E131_GroupByRedb
redb.Examples.Examples
E142_GroupByArray
redb.Examples.Examples
E173_TreeQueryGroupBy
redb.Examples.Examples
E175_TreeQueryGroupByWindow
redb.Examples.Examples
E195_GroupByWindowFiltered
redb.Examples.Examples
IRedbQueryable<TProps>
redb.Core.Query
GroupBy<TKey>(Expression<Func<TProps, TKey>>)
Group by field with subsequent aggregation.
GroupByArray<TItem, TKey>(Expression<Func<TProps, IEnumerable<TItem>>>, Expression<Func<TItem, TKey>>)
Group by array elements (Items[].Property).
GroupByRedb<TKey>(Expression<Func<IRedbObject, TKey>>)
Group by IRedbObject base fields (id, scheme_id, parent_id, etc.).
ITreeQueryProvider
redb.Core.Query
GetTreeGroupBySqlPreviewAsync<TProps>(TreeQueryContext<TProps>, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>)
Get SQL preview for tree GROUP BY query (for debugging).
ProQueryableProvider
redb.Postgres.Pro.Providers
GetGroupBySqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, string?)
Get SQL preview for GroupBy aggregation (for diagnostics).
ProQueryProvider
redb.MSSql.Pro.Query
GetGroupBySqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, FilterExpression?)
Pro: SQL Preview for GroupBy with FilterExpression (preferred).
GetGroupBySqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, string?)
Pro: SQL Preview for GroupBy with filterJson (legacy compatibility).
ProQueryProvider
redb.Postgres.Pro.Query
GetGroupBySqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, FilterExpression?)
Pro: SQL Preview for GroupBy with FilterExpression (preferred).
GetGroupBySqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, string?)
Pro: SQL Preview for GroupBy with filterJson (legacy compatibility).
ProTreeQueryProvider
redb.MSSql.Pro.Query
ExecuteTreeGroupByAsync<TProps>(TreeQueryContext<TProps>, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>)
Execute GROUP BY on tree with CTE.
GetTreeGroupBySqlPreviewAsync<TProps>(TreeQueryContext<TProps>, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>)
SQL Preview for Tree GroupBy (DRY - same SQL as Execute)
ProTreeQueryProvider
redb.Postgres.Pro.Query
ExecuteTreeGroupByAsync<TProps>(TreeQueryContext<TProps>, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>)
Execute GROUP BY on tree with CTE.
GetGroupBySqlPreviewAsync(long, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>, string?)
Returns SQL preview for GroupBy query with tree constraints.
GetTreeGroupBySqlPreviewAsync<TProps>(TreeQueryContext<TProps>, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>)
SQL Preview for Tree GroupBy (DRY - same SQL as Execute)
RedbQueryable<TProps>
redb.Core.Query
GroupBy<TKey>(Expression<Func<TProps, TKey>>)
Grouping with aggregations.
GroupByArray<TItem, TKey>(Expression<Func<TProps, IEnumerable<TItem>>>, Expression<Func<TItem, TKey>>)
Grouping by array elements
GroupByRedb<TKey>(Expression<Func<IRedbObject, TKey>>)
Grouping by base IRedbObject fields (id, scheme_id, parent_id, etc.)
TreeQueryableBase<TProps>
redb.Core.Query.Base
GroupBy<TKey>(Expression<Func<TProps, TKey>>)
Override GroupBy to respect tree context (rootObjectId, maxDepth, ParentIds).
GroupByRedb<TKey>(Expression<Func<IRedbObject, TKey>>)
Override GroupByRedb to respect tree context.
TreeQueryProviderBase
redb.Core.Query.Base
GetTreeGroupBySqlPreviewAsync<TProps>(TreeQueryContext<TProps>, IEnumerable<GroupFieldRequest>, IEnumerable<AggregateRequest>)
Get SQL preview for tree GROUP BY query.