EasyObjects.NET Programmers Reference

DynamicQuery.AddOrderByFormat Method (String, Dir)

Adds an ORDER BY clause to the query. The field is formatted using the FieldFormat.

public virtual void AddOrderByFormat(
   string fieldName,
   Dir direction
);

Parameters

fieldName
The field to be added to the ORDER BY
direction
The WhereParameter.Dir direction to sort the results by

Example

emps.Query.AddOrderBy("LastName", WhereParameter.Dir.ASC)
emps.Query.AddOrderBy("FirstName", WhereParameter.Dir.ASC)

See Also

DynamicQuery Class | NCI.EasyObjects Namespace | DynamicQuery.AddOrderByFormat Overload List