Method GetSortExpression
GetSortExpression<T, TResult>(string)
Gets the sort expression for the specified property name.
LambdaExpression GetSortExpression<T, TResult>(string propertyName)
Parameters
propertyNamestringThe name of the property to sort by.
Returns
- LambdaExpression
The sort expression.
Type Parameters
TThe source type.
TResultThe result type.