DevForce Help Reference
SortSelector Constructor(String,ListSortDirection)
Example 


Create a SortSelector for the specified property path.
Syntax
'Declaration
 
Public Function New( _
   ByVal propertyPath As String, _
   Optional ByVal sortDirection As ListSortDirection _
)
'Usage
 
Dim propertyPath As String
Dim sortDirection As ListSortDirection
 
Dim instance As New SortSelector(propertyPath, sortDirection)

Parameters

propertyPath
sortDirection
Example
var mgr = new DomainModelEntityManager();

var entityType = typeof(Customer);
var baseQuery = EntityQuery.Create(entityType, mgr);
var ss = new SortSelector(Customer.EntityPropertyNames.Id, ListSortDirection.Ascending);
var results = baseQuery.OrderBySelector(ss).Execute();
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

SortSelector Class
SortSelector Members
Overload List

Send Feedback