IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > QueryableExtensions Class : ThenBySelector<TSource> Method |
'Declaration
<ExtensionAttribute()> Public Shared Function ThenBySelector(Of TSource)( _ ByVal source As IOrderedQueryable(Of TSource), _ ByVal sortSelector As ISortSelector _ ) As IOrderedQueryable(Of TSource)
'Usage
Dim source As IOrderedQueryable(Of TSource) Dim sortSelector As ISortSelector Dim value As IOrderedQueryable(Of TSource) value = QueryableExtensions.ThenBySelector(Of TSource)(source, sortSelector)
[Extension()] public static IOrderedQueryable<TSource> ThenBySelector<TSource>( IOrderedQueryable<TSource> source, ISortSelector sortSelector )
public void ThenBySample1() { var mgr = new DomainModelEntityManager(); var selector1 = new SortSelector(typeof(Customer), "Country"); var selector2 = new SortSelector(typeof(Customer), "CompanyName"); var results = mgr.Customers.OrderBySelector(selector1).ThenBySelector(selector2).ToList(); }
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