Show / Hide Table of Contents

Class QuerySort

Represents declarative sorting.

Inheritance
Object
QuerySort
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM.Messaging
Assembly: IRM.dll
Syntax
[Serializable]
public class QuerySort : IDynamicQueryPart

Constructors

QuerySort()

Initializes a new instance of the QuerySort class.

Declaration
public 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)

Declaration
public virtual bool Equals(QuerySort other)
Parameters
QuerySort other

Returns
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Object obj

Returns
Boolean

Overrides
Object.Equals(Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
System.Int32

Overrides
System.Object.GetHashCode()

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

Implements
IDynamicQueryPart.ToDynamicExpression<T>()

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX