Performs a subsequent ordering of the entities in a
IOrderedSearch<(Of <(<'TEntity, TIdentity>)>)> according to criterion.
Assembly: Epic.Query.Object
Declaration Syntax
C# |
public static IOrderedSearch<TEntity, TIdentity> ThenBy<TEntity, TIdentity>( this IOrderedSearch<TEntity, TIdentity> search, OrderCriterion<TEntity> criterion ) where TEntity : class where TIdentity : Object, IEquatable<TIdentity>
Generic Template Parameters
- TEntity
- The type of the entities searched by search.
- TIdentity
- The type of the identities of the entities searched by search.
Parameters
- search (IOrderedSearch<(Of <(<'TEntity, TIdentity>)>)>)
- An IOrderedSearch<(Of <(<'TEntity, TIdentity>)>)> that contains entities to sort.
- criterion (OrderCriterion<(Of <(<'TEntity>)>)>)
- Order criterion.
Return Value
An IOrderedSearch<(Of <(<'TEntity, TIdentity>)>)> whose entities are
sorted according to the criterion provided.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IOrderedSearch<(Of <(<'TEntity, TIdentity>)>)>. When you use instance method syntax to call this method, omit the first parameter.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | search or
criterion is nullNothingnullptr. |