Symphony Framework
Add(String,OrderBydBDirections) Method
Example 
Symphony.dB Namespace > OrderBydB Class > Add Method : Add(String,OrderBydBDirections) Method
The name of the column/field to sequence.
The required sequence.
Add an order by element to the order-by collection.
Syntax

Parameters

fieldName
The name of the column/field to sequence.
orderDirection
The required sequence.
Remarks
This collection is used by the DBAccess methods and should not be referenced/changed by user code.
Example
Symphony.dB.DBAccess orderAccess = new DBAccess("ORDER", "DATABASE:DatabaseManager");
OrderBydB OrderSequence = new OrderBydB("order_date", OrderBydBDirections.Asc);
OrderSequence.Add("order_value", OrderBydBDirections.Desc);
foreach (string order in orderAccess.Select(OrderSequence))
{

}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

OrderBydB Class
OrderBydB Members
Overload List