Click or drag to resize

ExtensionMethodsSort Method

Create sort expression.

Namespace:  SanteDB.Core.Model
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 2.2.1
Syntax
public static Expression Sort(
	this Expression me,
	string orderByProperty,
	SortOrderType sortOrder
)

Parameters

me
Type: System.Linq.ExpressionsExpression
Me.
orderByProperty
Type: SystemString
The order by property.
sortOrder
Type: SanteDB.Core.Model.MapSortOrderType
The sort order.

Return Value

Type: Expression
Expression.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Expression. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also