| IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace : CompositeSortSelector Class |
'DeclarationPublic Class CompositeSortSelector Inherits IdeaBlade.Linq.SelectorCollection(Of SortSelector,CompositeSortSelector)
'UsageDim instance As CompositeSortSelector
public class CompositeSortSelector : IdeaBlade.Linq.SelectorCollection<SortSelector,CompositeSortSelector>
var mgr = new DomainModelEntityManager(); var entityType = typeof(Customer); var baseQuery = EntityQuery.Create(entityType, mgr); var ss1 = new SortSelector(Customer.EntityPropertyNames.Id); var ss2 = new SortSelector(Customer.EntityPropertyNames.CompanyName); var combined = ss1.ThenBy(ss2); var results = baseQuery.OrderBySelector(combined).Execute();
System.Object
IdeaBlade.Linq.SelectorCollection<T,U>
IdeaBlade.Linq.CompositeSortSelector
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