Search Results for

    Show / Hide Table of Contents

    Class GetAllGroupingItems

    A helper class for getting all grouping items recursively for a given grouping

    Inheritance
    object
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>
    SQLWrapperExecuter<IGroupingItem>
    GetAllGroupingItems
    Inherited Members
    SQLWrapperExecuter<IGroupingItem>.Execute(CancellationToken)
    SQLWrapperExecuter<IGroupingItem>.ExecuteCount()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>._sqlWrapperName
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>._sqlWrapperID
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>._sqlWrapper
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>._params
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.GetWrapper()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.ClearParameters()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.AddParameters(IReadOnlyDictionary<string, string>)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.AddParameter<V>(string, V)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.AddParameter(string, bool)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.AddParameter<V>(string, V?)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.AddAsOfDate(DateTimeOffset)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.AddCanvasID(Guid)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.ClearFilter()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.SetFilter(QueryableExecuter<IGroupingItem>)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.ParametersAreValid()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.GetFilter()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.GetQueryArgumentsAndFilter()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.Execute(CancellationToken)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.ExecuteCount()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.Retriever
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.Cache
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.Parameters
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.Filter
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Entities.Helpers.Queries
    Assembly: LemonEdge.API.dll
    Syntax
    public class GetAllGroupingItems : SQLWrapperExecuter<IGroupingItem>

    Constructors

    GetAllGroupingItems(IEntityRetriever, IReadOnlyCache)

    Creates a new SQLWrapperExecuter for the GetAllGroupingItems standard SQL Wrapper query

    Declaration
    public GetAllGroupingItems(IEntityRetriever retriever, IReadOnlyCache cache)
    Parameters
    Type Name Description
    IEntityRetriever retriever

    A IEntityRetriever context for querying the LemonEdge platform

    IReadOnlyCache cache

    A local cache

    Fields

    PARAM_AUTOROLLUP

    The parameter for auto rolling up groupings

    Declaration
    public static readonly string PARAM_AUTOROLLUP
    Field Value
    Type Description
    string

    PARAM_GROUPINGID

    The parameter for the grouping to run this query against

    Declaration
    public static readonly string PARAM_GROUPINGID
    Field Value
    Type Description
    string

    QUERYNAME

    Global name of the SQLWrapper query that returns all grouping items recursively for a given grouping

    Declaration
    public const string QUERYNAME = "GetAllGroupingItems"
    Field Value
    Type Description
    string

    Methods

    AddAutoRollup(bool)

    Adds the specified auto rollup flag

    Declaration
    public GetAllGroupingItems AddAutoRollup(bool autorollup)
    Parameters
    Type Name Description
    bool autorollup

    Indicates if grouping amounts should be auto rolled up to each level

    Returns
    Type Description
    GetAllGroupingItems

    This GetAllGroupingItems instance for chaining commands

    AddRootGroupingID(Guid)

    Adds the specified grouping id to the parameters for executing this query

    Declaration
    public GetAllGroupingItems AddRootGroupingID(Guid rootGroupingID)
    Parameters
    Type Name Description
    Guid rootGroupingID

    The grouping id to run the GetAllGroupingItems query with

    Returns
    Type Description
    GetAllGroupingItems

    This GetAllGroupingItems instance for chaining commands

    Execute(IEntityRetriever, IReadOnlyCache, Guid, bool, QueryableExecuter<IGroupingItem>)

    Executes the GetCanvasItems system SQLWrapper using the specified parameters, and returns the results of the results of that query

    Declaration
    public static Task<IEnumerable<IGroupingItem>> Execute(IEntityRetriever retriever, IReadOnlyCache cache, Guid rootGroupingID, bool autoRollup, QueryableExecuter<IGroupingItem> filter = null)
    Parameters
    Type Name Description
    IEntityRetriever retriever

    A IEntityRetriever context for querying the LemonEdge platform

    IReadOnlyCache cache

    A local cache

    Guid rootGroupingID

    The grouping id to run the GetAllGroupingItems query with

    bool autoRollup
    QueryableExecuter<IGroupingItem> filter

    An optional QueryableExecuter<T> that holds any filtering to apply to the query

    Returns
    Type Description
    Task<IEnumerable<IGroupingItem>>

    A task holding the results of executing the GetCanvasItems query with the specified parameters

    Execute(Guid, bool, QueryableExecuter<IGroupingItem>)

    Executes the GetAllGroupingItems system SQLWrapper using the specified parameters, and returns the results of the results of that query

    Declaration
    public Task<IEnumerable<IGroupingItem>> Execute(Guid rootGroupingID, bool autoRollup, QueryableExecuter<IGroupingItem> filter = null)
    Parameters
    Type Name Description
    Guid rootGroupingID

    The grouping id to run the GetAllGroupingItems query with

    bool autoRollup
    QueryableExecuter<IGroupingItem> filter

    An optional QueryableExecuter<T> that holds any filtering to apply to the query

    Returns
    Type Description
    Task<IEnumerable<IGroupingItem>>

    A task holding the results of executing the GetAllGroupingItems query with the specified parameters

    ExecuteCount(IEntityRetriever, IReadOnlyCache, Guid, bool, QueryableExecuter<IGroupingItem>)

    Executes the GetAllGroupingItems system SQLWrapper using the specified parameters, and returns the count of the results of that query

    Declaration
    public static Task<int> ExecuteCount(IEntityRetriever retriever, IReadOnlyCache cache, Guid rootGroupingID, bool autoRollup, QueryableExecuter<IGroupingItem> filter = null)
    Parameters
    Type Name Description
    IEntityRetriever retriever

    A IEntityRetriever context for querying the LemonEdge platform

    IReadOnlyCache cache

    A local cache

    Guid rootGroupingID

    The grouping id to run the GetAllGroupingItems query with

    bool autoRollup
    QueryableExecuter<IGroupingItem> filter

    An optional QueryableExecuter<T> that holds any filtering to apply to the query

    Returns
    Type Description
    Task<int>

    A task holding the count of executing the GetAllGroupingItems query with the specified parameters

    ExecuteCount(Guid, bool, QueryableExecuter<IGroupingItem>)

    Executes the GetAllGroupingItems system SQLWrapper using the specified parameters, and returns the count of the results of that query

    Declaration
    public Task<int> ExecuteCount(Guid rootGroupingID, bool autoRollup, QueryableExecuter<IGroupingItem> filter = null)
    Parameters
    Type Name Description
    Guid rootGroupingID

    The grouping id to run the GetAllGroupingItems query with

    bool autoRollup
    QueryableExecuter<IGroupingItem> filter

    An optional QueryableExecuter<T> that holds any filtering to apply to the query

    Returns
    Type Description
    Task<int>

    A task holding the count of executing the GetAllGroupingItems query with the specified parameters

    ParametersAreValid()

    Indicates if the parameters are valid for executing the query

    Declaration
    protected override bool ParametersAreValid()
    Returns
    Type Description
    bool

    True if the parameters contain a value for @canvasID

    Overrides
    BaseSQLWrapperExecuter<SQLWrapperExecuter<IGroupingItem>, IGroupingItem>.ParametersAreValid()

    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)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.