IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityQueryExtensions Class > OrderBySelector Method : OrderBySelector(ITypedEntityQuery,ISortSelector) Method |
'Declaration
<ExtensionAttribute()> Public Overloads Shared Function OrderBySelector( _ ByVal source As ITypedEntityQuery, _ ByVal selector As ISortSelector _ ) As ITypedEntityQuery
'Usage
Dim source As ITypedEntityQuery Dim selector As ISortSelector Dim value As ITypedEntityQuery value = EntityQueryExtensions.OrderBySelector(source, selector)
[Extension()] public static ITypedEntityQuery OrderBySelector( ITypedEntityQuery source, ISortSelector selector )
public void OrderBySample1() { var mgr = new DomainModelEntityManager(); var selector = new SortSelector(typeof(Customer), "Country", ListSortDirection.Descending); var results = mgr.Customers.OrderBySelector(selector).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