EasyObjects.NET Programmers Reference

DynamicQuery.AddOrderBy Method (DynamicQuery, Dir)

Adds an ORDER BY clause to the query using COUNT(*). Used with Query.CountAll set to true. Derived classes implement this, like SqlServerDynamicQuery and OracleDynamicQuery to account for differences in DBMS systems.

public abstract void AddOrderBy(
   DynamicQuery countAll,
   Dir direction
);

Parameters

countAll
This should be entity.Query
direction
Either Descending or Ascending

Example

emps.Query.AddOrderBy(emps.Query, WhereParameter.Dir.ASC)

See Also

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