Show / Hide Table of Contents

    IOrderable<TModel> Interface

    .NET Standard 2.x | Current Version (1.0.1)

    0.5.0-alpha 1.0.1 (current)

    Represents a sortable object that provides methods for adding collations or performing sort.

    Namespace: SnapObjects.Data

    Assembly: SnapObjects.Data.dll

    Syntax

       public interface IOrderable<TModel>;
    

    Method

    Name Returns Type Description
    Sort() bool Sorts the object according to the collations you have set.
    ThenBy<TKey>(Func<TModel, TKey> keySelector) IOrderable<TModel> Performs a subsequent ordering of the model objects in the current sortable object in ascending order according to a key.
    ThenByDescending<TKey>(Func<TModel, TKey> keySelector) IOrderable<TModel> Performs a subsequent ordering of the model objects in the current sortable object in descending order according to a key.

    Remarks

    The IOrderable<TModel> interface is used together with IModelStore<TModel>. When the IModelStore<TModel> OrderBy or OrderByDescending method is called, an IOrderable<TModel> object is returned.

    Back to top Generated by Appeon