IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > SortSelector Class > SortSelector Constructor : SortSelector Constructor(Type,String,ListSortDirection) |
'Declaration
Public Function New( _ ByVal instanceType As Type, _ ByVal propertyPath As String, _ Optional ByVal sortDirection As ListSortDirection _ )
'Usage
Dim instanceType As Type Dim propertyPath As String Dim sortDirection As ListSortDirection Dim instance As New SortSelector(instanceType, propertyPath, sortDirection)
public SortSelector( Type instanceType, string propertyPath, ListSortDirection sortDirection )
var mgr = new DomainModelEntityManager(); var entityType = typeof(Customer); var baseQuery = EntityQuery.Create(entityType, mgr); var ss = new SortSelector(entityType, Customer.EntityPropertyNames.Id, ListSortDirection.Ascending); var results = baseQuery.OrderBySelector(ss).Execute();
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