Specifies the field to sort the table/collection by in ascending or descending order. If the TableJoinAttribute has been specified then the sort order can be specified on the joined table field.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
public OrderByFieldAttribute(
	string strOrderByFieldName,
	OrderBy eOrder,
	int intPrecendence
)
Visual Basic
Public Sub New ( _
	strOrderByFieldName As String, _
	eOrder As OrderBy, _
	intPrecendence As Integer _
)
Visual C++
public:
OrderByFieldAttribute(
	String^ strOrderByFieldName, 
	OrderBy eOrder, 
	int intPrecendence
)

Parameters

strOrderByFieldName
Type: System..::..String

[Missing <param name="strOrderByFieldName"/> documentation for "M:DatabaseObjects.OrderByFieldAttribute.#ctor(System.String,DatabaseObjects.SQL.OrderBy,System.Int32)"]

eOrder
Type: DatabaseObjects.SQL..::..OrderBy

[Missing <param name="eOrder"/> documentation for "M:DatabaseObjects.OrderByFieldAttribute.#ctor(System.String,DatabaseObjects.SQL.OrderBy,System.Int32)"]

intPrecendence
Type: System..::..Int32
Indicates the order precendence level when multiple OrderByAttributes are specified. OrderByAttributes are sorted for items with the lowest to the highest integer value.

See Also