Skip to content

TQueryLinqExtensions_ThenBy_QeXpQQdHmvbeYKRnf5ImDg

Jacob Spitzer edited this page Aug 28, 2022 · 2 revisions

TQueryLinqExtensions.ThenBy<Table,TKey>(DbEcOrder<Table>, Expression<Func<Table,TKey>>) Method

Performs a subsequent ordering of a TQuery recordset in ascending order according to a key.

public static DbEasyConnect.DbEcOrder<Table> ThenBy<Table,TKey>(this DbEasyConnect.DbEcOrder<Table> tQuery, System.Linq.Expressions.Expression<System.Func<Table,TKey>> keySelector);

Type parameters

Table
The type of the records of table class. need to be a class with the [Table("")] attribute.

TKey
The type of the key returned by the function that is represented by keySelector.

Parameters

tQuery DbEasyConnect.DbEcOrder<Table>
An DbEcOrder<T> that contains the ordered queryable table to apply the subsequent order predicate to.

keySelector System.Linq.Expressions.Expression<System.Func<Table,TKey>>
A function to extract a field from an TQuery recordset

Returns

DbEasyConnect.DbEcOrder<Table>
An DbEcOrder<T> whose records are sorted according to a key.

Clone this wiki locally