Fork me on GitHubEpicdominant domains
APIEpic.Query.ObjectSearchableThenBy<(Of <<'(TEntity, TIdentity>)>>)(IOrderedSearch<(Of <<'(TEntity, TIdentity>)>>), OrderCriterion<(Of <<'(TEntity>)>>))

ThenBy<(Of <(<'TEntity, TIdentity>)>)> Method (search, criterion)
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
ExceptionCondition
ArgumentNullExceptionsearch or criterion is nullNothingnullptr.
blog comments powered by Disqus