Show / Hide Table of Contents

Method OrderBy

| Improve this Doc View Source

OrderBy(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.

| Improve this Doc View Source

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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest