The OrderByFieldAttribute should specify the field that is sorted and whether it is ascending or descending. If the TableJoinAttribute has been specified then the sort order can be specified on the joined table field. To further customer the ordering (i.e. sort by more than one field) simply override the OrderBy function and do not specify an OrderByAttribute. Specifying this attribute is optional and if not specified the table is not sorted.

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


public class OrderByFieldAttribute : Attribute
Visual Basic
Public Class OrderByFieldAttribute _
	Inherits Attribute
Visual C++
public ref class OrderByFieldAttribute : public Attribute


<OrderBy("CustomerName", SQL.OrderBy.Ascending)>
Public Class Customers

Inheritance Hierarchy


See Also