Search Results for

    Show / Hide Table of Contents

    Class Orderer<TOrder, TOrderProperty>

    Implementation of IOrderer.

    Inheritance
    Object
    Orderer<TOrder, TOrderProperty>
    Implements
    IOrderer<TOrder>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Acoustics.Shared
    Assembly: Acoustics.Shared.dll
    Syntax
    public class Orderer<TOrder, TOrderProperty> : IOrderer<TOrder>
    Type Parameters
    Name Description
    TOrder

    Type to order.

    TOrderProperty

    Type from property to order by.

    Constructors

    | Improve this Doc View Source

    Orderer(Expression<Func<TOrder, TOrderProperty>>)

    Initializes a new instance of the Orderer<TOrder, TOrderProperty> class. Orders by ascending.

    Declaration
    public Orderer(Expression<Func<TOrder, TOrderProperty>> orderExpr)
    Parameters
    Type Name Description
    Expression<Func<TOrder, TOrderProperty>> orderExpr

    The order expr.

    | Improve this Doc View Source

    Orderer(Expression<Func<TOrder, TOrderProperty>>, SortDirection)

    Initializes a new instance of the Orderer<TOrder, TOrderProperty> class.

    Declaration
    public Orderer(Expression<Func<TOrder, TOrderProperty>> orderExpr, SortDirection sortDirection)
    Parameters
    Type Name Description
    Expression<Func<TOrder, TOrderProperty>> orderExpr

    The order expr.

    SortDirection sortDirection

    The sort Direction.

    Methods

    | Improve this Doc View Source

    ApplyOrderBy(IQueryable<TOrder>)

    Apply order by to IQueryable.

    Declaration
    public IOrderedQueryable<TOrder> ApplyOrderBy(IQueryable<TOrder> source)
    Parameters
    Type Name Description
    IQueryable<TOrder> source

    The source.

    Returns
    Type Description
    IOrderedQueryable<TOrder>

    Ordered Queryable.

    | Improve this Doc View Source

    ApplyThenBy(IOrderedQueryable<TOrder>)

    Apply order then by to IQueryable.

    Declaration
    public IOrderedQueryable<TOrder> ApplyThenBy(IOrderedQueryable<TOrder> source)
    Parameters
    Type Name Description
    IOrderedQueryable<TOrder> source

    The source.

    Returns
    Type Description
    IOrderedQueryable<TOrder>

    Ordered Queryable.

    Implements

    IOrderer<TOrder>

    Extension Methods

    ObjectExtensions.NotNull(Object)
    ObjectExtensions.AsArray<T>(T)
    ObjectExtensions.AsList<T>(T)
    ObjectExtensions.Wrap<T>(T)
    SystemExtensions.BinarySerialize(Object)
    ConfigFileExtensions.NotNull(Object, FileInfo, String, String)
    ConfigFileExtensions.ValidateNotNull(Object, String, String)
    ConfigFileExtensions.ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
    ExtensionsXml.SerializeObject<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top