[]
        
(Showing Draft Content)

C1.DataCollection.IDataCollectionEx.GroupAsync

GroupAsync Method

GroupAsync<T>(IDataCollection<T>, params string[])

Groups the data collection according to the specified group fields.

Declaration
public static Task GroupAsync<T>(this IDataCollection<T> dataCollection, params string[] fields) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

string[] fields

The fields.

Returns
Type Description
Task
Type Parameters
Name Description
T

GroupAsync<T>(IDataCollection<T>, Expression<Func<T, object>>)

Groups the data collection according to the specified group path.

Declaration
public static Task GroupAsync<T>(this IDataCollection<T> dataCollection, Expression<Func<T, object>> groupPath) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

Expression<Func<T, object>> groupPath

The group path.

Returns
Type Description
Task
Type Parameters
Name Description
T

GroupAsync<T>(IDataCollection<T>, GroupDescription[])

Groups the data collection according to the specified group descriptions.

Declaration
public static Task GroupAsync<T>(this IDataCollection<T> dataCollection, GroupDescription[] groupDescriptions) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

GroupDescription[] groupDescriptions

The group descriptions that determine how the data will be grouped.

Returns
Type Description
Task
Type Parameters
Name Description
T

GroupAsync<T>(IDataCollection<T>, GroupDescription[], CancellationToken)

Groups the data collection according to the specified group descriptions.

Declaration
public static Task GroupAsync<T>(this IDataCollection<T> dataCollection, GroupDescription[] groupDescriptions, CancellationToken cancellationToken = default) where T : class?
Parameters
Type Name Description
IDataCollection<T> dataCollection

The data collection.

GroupDescription[] groupDescriptions

The group descriptions that determine how the data will be grouped.

CancellationToken cancellationToken

The cancellation token.

Returns
Type Description
Task
Type Parameters
Name Description
T