IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > OrderBy Method : OrderBy<TSource,TKey>(IEntityQuery<TSource>,Expression<Func<TSource,TKey>>) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function OrderBy (Of TSource,TKey)( _ ByVal source As IEntityQuery(Of TSource), _ ByVal keySelector As Expression(Of Func(Of TSource,TKey)) _ ) As IEntityQuery(Of TSource)
'Usage
Dim source As IEntityQuery(Of TSource) Dim keySelector As Expression(Of Func(Of TSource,TKey)) Dim value As IEntityQuery(Of TSource) value = EntityQueryExtensions.OrderBy(Of TSource, TKey)(source, keySelector)
[Extension()] public static IEntityQuery<TSource> OrderBy<TSource,TKey>( IEntityQuery<TSource> source, Expression<Func<TSource,TKey>> keySelector )
var mgr1 = new DomainModelEntityManager(); var orderedCustomerList = mgr1.Customers.OrderBy(c => c.Id).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