IdeaBlade DevForce 2010 Help Reference
SortSelector Constructor(String,ListSortDirection)
See Also  Example Send Feedback
IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > SortSelector Class > SortSelector Constructor : SortSelector Constructor(String,ListSortDirection)



propertyPath
sortDirection
Create a SortSelector for the specified property path.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal propertyPath As String, _
   Optional ByVal sortDirection As ListSortDirection _
)
Visual Basic (Usage)Copy Code
Dim propertyPath As String
Dim sortDirection As ListSortDirection
 
Dim instance As New SortSelector(propertyPath, sortDirection)
C# 
public SortSelector( 
   string propertyPath,
   ListSortDirection sortDirection
)
C++/CLI 
public:
SortSelector( 
   String^ propertyPath,
   ListSortDirection sortDirection
)

Parameters

propertyPath
sortDirection

Example

C#Copy Code
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.