Class QuerySort
Represents declarative sorting.
Inherited Members
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
[Serializable]
public class QuerySort : IDynamicQueryPart
Constructors
QuerySort()
QuerySort(String, ListSortDirection)
Initializes a new instance of the QuerySort class with the specified sorting of a field.
Declaration
public QuerySort(string field, ListSortDirection direction)
Parameters
String
field
|
ListSortDirection
direction
|
QuerySort(String, ListSortDirection, Type)
Initializes a new instance of the QuerySort class with the specified sorting of a field.
Declaration
public QuerySort(string field, ListSortDirection direction, Type comparerType)
Parameters
String
field
|
ListSortDirection
direction
|
System.Type
comparerType
|
Properties
ComparerType
Gets or sets the type of a custom comparer (implements System.Collections.Generic.IComparer<T>).
Declaration
public Type ComparerType { get; set; }
Property Value
System.Type
|
Remarks
Custom comparers are not supported by Linq to Enteties.
ComparerTypeName
Gets or sets the full name of a custom comparer (implements System.Collections.Generic.IComparer<T>).
Declaration
public string ComparerTypeName { get; set; }
Property Value
String
|
Remarks
Custom comparers are not supported by Linq to Enteties.
Direction
Gets or sets the sort direction for this query sort.
Declaration
public ListSortDirection Direction { get; set; }
Property Value
ListSortDirection
|
Field
Gets or sets the field name which will be used for sorting.
Declaration
public string Field { get; set; }
Property Value
String
|
Methods
Equals(QuerySort)
Equals(Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
ToDynamicExpression<T>()
Returns an expression that can be used with dynamic LINQ.
Declaration
public string ToDynamicExpression<T>()
Returns
String
An expression that can be used with dynamic LINQ. |
Type Parameters
T
|