Skip to content

EntitySqlQueryExtensions.OrderBy method (1 of 2)

Adds field expressions to the order by list.

public static SqlQuery OrderBy(this SqlQuery query, params IField[] fields)
parameter description
query The query.
fields The fields.

Return Value

The query itself.

Exceptions

exception condition
ArgumentNullException fields is null.

See Also


EntitySqlQueryExtensions.OrderBy method (2 of 2)

Adds a field's expression to the order by list.

public static SqlQuery OrderBy(this SqlQuery query, IField field, bool desc = false)
parameter description
query The query.
field The field.
desc if set to true, sorts in descending order.

Return Value

The query itself.

Exceptions

exception condition
ArgumentNullException field is null.

See Also