Method OrderBy
| Improve this Doc View SourceOrderBy(ColumnSort[])
Constructs SQL ORDER BY.
Declaration
public DbQueryBuilder OrderBy(params ColumnSort[] orderByList)
Parameters
Type | Name | Description |
---|---|---|
ColumnSort[] | orderByList | The order by list. |
Returns
Type | Description |
---|---|
DbQueryBuilder | This query builder for fluent coding. |
OrderBy(Int32, Int32, ColumnSort[])
Constructs SQL ORDER BY with specified offset and fetch.
Declaration
public DbQueryBuilder OrderBy(int offset, int fetch, params ColumnSort[] orderByList)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | offset | Specifies how many rows to skip within the query result. |
System.Int32 | fetch | Specifies how many rows to skip within the query result. |
ColumnSort[] | orderByList | The order by list. |
Returns
Type | Description |
---|---|
DbQueryBuilder | This query builder for fluent coding. |