[]
Sorts the data collection according to the specified sort parameters.
public static Task SortAsync<T>(this IDataCollection<T> dataCollection, string sortPath, SortDirection sortDirection = SortDirection.Ascending) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
string | sortPath | The path of the data item to which the sort description will be applied. |
SortDirection | sortDirection | The direction of the sort operation. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |
Sorts the data collection according to the specified sort path and direction.
public static Task SortAsync<T>(this IDataCollection<T> dataCollection, Expression<Func<T, object>> sortPath, SortDirection sortDirection = SortDirection.Ascending) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
Expression<Func<T, object>> | sortPath | The filter path. |
SortDirection | sortDirection | The sort direction. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |
Sorts the data collection according to the specified sort descriptions.
public static Task SortAsync<T>(this IDataCollection<T> dataCollection, params SortDescription[] sortDescriptions) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
SortDescription[] | sortDescriptions | The sort descriptions that determine how the data will be sort. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |
Sorts the data collection according to the specified sort descriptions.
public static Task SortAsync<T>(this IDataCollection<T> dataCollection, SortDescription[] sortDescriptions, CancellationToken cancellationToken = default) where T : class?
Type | Name | Description |
---|---|---|
IDataCollection<T> | dataCollection | The data collection. |
SortDescription[] | sortDescriptions | The sort descriptions that determine how the data will be sort. |
CancellationToken | cancellationToken | The cancellation token. |
Type | Description |
---|---|
Task |
Name | Description |
---|---|
T |