Search Results for

    Show / Hide Table of Contents

    Interface ICustomServiceQueryHelper

    A helper class used by any CustomServiceQueryExtender<T> implementation in order to retrieve items to build a query with

    Namespace: LemonEdge.API.Core.Data
    Assembly: LemonEdge.API.dll
    Syntax
    public interface ICustomServiceQueryHelper

    Properties

    Cache

    A local cache for accessing data for your query that is already held locally

    Declaration
    IReadOnlyCache Cache { get; }
    Property Value
    Type Description
    IReadOnlyCache

    GetUseLabels

    Declaration
    bool GetUseLabels { get; }
    Property Value
    Type Description
    bool

    Methods

    ExecuteCount<T>(IQueryable<T>)

    Declaration
    Task<int> ExecuteCount<T>(IQueryable<T> query) where T : IBaseEntity
    Parameters
    Type Name Description
    IQueryable<T> query
    Returns
    Type Description
    Task<int>
    Type Parameters
    Name Description
    T

    ExecuteItems<T>(IQueryable<T>)

    Declaration
    Task<IEnumerable<T>> ExecuteItems<T>(IQueryable<T> query) where T : IBaseEntity
    Parameters
    Type Name Description
    IQueryable<T> query
    Returns
    Type Description
    Task<IEnumerable<T>>
    Type Parameters
    Name Description
    T

    GetQueryableItems(Type, Guid)

    Declaration
    IQueryable GetQueryableItems(Type entityType, Guid forType = default)
    Parameters
    Type Name Description
    Type entityType
    Guid forType
    Returns
    Type Description
    IQueryable

    GetQueryableItems<T>(Guid)

    Returns a queryable set of the specified item type

    Declaration
    IQueryable<T> GetQueryableItems<T>(Guid forType = default) where T : IBaseEntity
    Parameters
    Type Name Description
    Guid forType

    A sub item type if accessing permissions or other replicated item types

    Returns
    Type Description
    IQueryable<T>

    A queryable set of those items

    Type Parameters
    Name Description
    T

    The type of item to query

    UseLabels(bool)

    Declaration
    IEntityRetriever UseLabels(bool useLabels)
    Parameters
    Type Name Description
    bool useLabels
    Returns
    Type Description
    IEntityRetriever

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    CustomServiceQueryExtender<T>
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.