Show / Hide Table of Contents

Method OrderBy

| Improve this Doc View Source

OrderBy(Func<T, ColumnSort>[])

Sorts this database recordset.

Declaration
public DbQuery<T> OrderBy(params Func<T, ColumnSort>[] fnOrderByList)
Parameters
Type Name Description
System.Func<T, ColumnSort>[] fnOrderByList

The order by list to sort.

Returns
Type Description
DbQuery<T>

The query which sorts this database recordset.

| Improve this Doc View Source

OrderBy(Int32, Int32, Func<T, ColumnSort>[])

Sorts this database recordset.

Declaration
public DbQuery<T> OrderBy(int offset, int fetch, params Func<T, ColumnSort>[] fnOrderByList)
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.

System.Func<T, ColumnSort>[] fnOrderByList

The order by list to sort.

Returns
Type Description
DbQuery<T>

The query which sorts this database recordset.

| Improve this Doc View Source

OrderBy(Func<T, ColumnSort[]>)

Sorts this database recordset.

Declaration
public DbQuery<T> OrderBy(Func<T, ColumnSort[]> fnOrderByList)
Parameters
Type Name Description
System.Func<T, ColumnSort[]> fnOrderByList

The order by list to sort.

Returns
Type Description
DbQuery<T>

The query which sorts this database recordset.

| Improve this Doc View Source

OrderBy(Int32, Int32, Func<T, ColumnSort[]>)

Sorts this database recordset.

Declaration
public DbQuery<T> OrderBy(int offset, int fetch, Func<T, ColumnSort[]> fnOrderByList)
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.

System.Func<T, ColumnSort[]> fnOrderByList

The order by list to sort.

Returns
Type Description
DbQuery<T>

The query which sorts this database recordset.

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