SpecificationTOrderByTKey Method (ExpressionFuncT, TKey, SortOrder) |
Specifies the way the sequence must be sorted.
Namespace:
Enkoni.Framework
Assembly:
Enkoni.Framework.Specifications (in Enkoni.Framework.Specifications.dll) Version: 1.3.0.1
Syntaxpublic ISpecification<T> OrderBy<TKey>(
Expression<Func<T, TKey>> keySelector,
SortOrder direction
)
Public Function OrderBy(Of TKey) (
keySelector As Expression(Of Func(Of T, TKey)),
direction As SortOrder
) As ISpecification(Of T)
public:
generic<typename TKey>
virtual ISpecification<T>^ OrderBy(
Expression<Func<T, TKey>^>^ keySelector,
SortOrder direction
) sealed
abstract OrderBy :
keySelector : Expression<Func<'T, 'TKey>> *
direction : SortOrder -> ISpecification<'T>
override OrderBy :
keySelector : Expression<Func<'T, 'TKey>> *
direction : SortOrder -> ISpecification<'T>
Parameters
- keySelector
- Type: System.Linq.ExpressionsExpressionFuncT, TKey
The expression that points to the field that must be used to perform the sorting. - direction
- Type: Enkoni.FrameworkSortOrder
The direction that the ordering must take place in.
Type Parameters
- TKey
- The type of object that must be used to perform the sorting.
Return Value
Type:
ISpecificationTThe specification with the sorting rules.
Implements
ISpecificationTOrderByTKey(ExpressionFuncT, TKey, SortOrder)
See Also