JK
Search Results for

    Show / Hide Table of Contents

    Class QueryableExtensions

    Inheritance
    System.Object
    QueryableExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: JK.Common.Extensions
    Assembly: JK.Common.dll
    Syntax
    public static class QueryableExtensions

    Methods

    | Improve this Doc View Source

    SortBy<T>(IQueryable<T>, in String, in Boolean)

    Declaration
    public static IQueryable<T> SortBy<T>(this IQueryable<T> source, in string propertyName, in bool ascending = true)
    Parameters
    Type Name Description
    System.Linq.IQueryable<T> source
    System.String propertyName
    System.Boolean ascending
    Returns
    Type Description
    System.Linq.IQueryable<T>
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    SortBy<TSource, TKey>(IQueryable<TSource>, in Func<TSource, TKey>, in Boolean)

    Declaration
    public static IQueryable<TSource> SortBy<TSource, TKey>(this IQueryable<TSource> source, in Func<TSource, TKey> keySelector, in bool isAscending = true)
    Parameters
    Type Name Description
    System.Linq.IQueryable<TSource> source
    System.Func<TSource, TKey> keySelector
    System.Boolean isAscending
    Returns
    Type Description
    System.Linq.IQueryable<TSource>
    Type Parameters
    Name Description
    TSource
    TKey
    | Improve this Doc View Source

    WhereIf<TSource>(IQueryable<TSource>, in Boolean, in Expression<Func<TSource, Boolean>>)

    Declaration
    public static IQueryable<TSource> WhereIf<TSource>(this IQueryable<TSource> source, in bool condition, in Expression<Func<TSource, bool>> predicate)
    Parameters
    Type Name Description
    System.Linq.IQueryable<TSource> source
    System.Boolean condition
    System.Linq.Expressions.Expression<System.Func<TSource, System.Boolean>> predicate
    Returns
    Type Description
    System.Linq.IQueryable<TSource>
    Type Parameters
    Name Description
    TSource
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © Jeremy Knight. Generated with DocFX