Skip to content

DmGroupQuery`2 ​

Namespace: MJCZone.DapperMatic.Dml

Assembly: MJCZone.DapperMatic

Summary ​

Groups of a query's rows, one <c>GROUP BY</c>: filtered by <c>Having</c>, ordered and paged, and read by <c>Select</c> over each group's <c>Key</c> and aggregates (<c>Count</c>, <c>Sum</c>, <c>Min</c>, <c>Max</c>, <c>Average</c>, <c>Any</c>, <c>All</c>, each after any <c>Where</c>).

sealed public

Contents ​

Methods (13)

Methods ​

MethodSummary
Having
OrderBy
OrderByDescending
ThenBy
ThenByDescending
SkipSkips groups.
TakeReturns at most a number of groups.
Select
CountAsyncCounts the groups.
GetType
ToString
Equals
GetHashCode

Having ​

csharp
Having()

OrderBy ​

csharp
OrderBy()

OrderByDescending ​

csharp
OrderByDescending()

ThenBy ​

csharp
ThenBy()

ThenByDescending ​

csharp
ThenByDescending()

Skip ​

Skips groups.

csharp
DmGroupQuery&lt;TKey, TElement&gt; Skip(int count)

Parameters ​

  • count (int) - The number of groups to skip.

Returns ​

Type: DmGroupQuery&lt;TKey, TElement&gt;

The query.

Take ​

Returns at most a number of groups.

csharp
DmGroupQuery&lt;TKey, TElement&gt; Take(int count)

Parameters ​

  • count (int) - The most groups to return.

Returns ​

Type: DmGroupQuery&lt;TKey, TElement&gt;

The query.

Select ​

csharp
Select()

CountAsync ​

Counts the groups.

csharp
Task&lt;long&gt; CountAsync(IDbTransaction tx, CancellationToken cancellationToken)

Parameters ​

  • tx (IDbTransaction) - The transaction to use, or null.
  • cancellationToken (CancellationToken) - The cancellation token.

Returns ​

Type: Task&lt;long&gt;

The number of groups.

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()