Search Results for

    Show / Hide Table of Contents

    Class SQLWrapperExecuter<T>

    Used for executing a sql wrapper and enumerating the results using the specified complex, or entity, type T

    The property names on the type must match the names of the columns you want returned from the sql wrapper schema defined by Name

    Inheritance
    object
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>
    SQLWrapperExecuter<T>
    GetGLRollup
    GetInstrumentCapitalAccountDataSettings
    GetInstrumentSets
    GetPathInfo
    GetPaths
    GetAllGroupingItems
    GetCanvasItems
    GetSafeItems
    Inherited Members
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>._sqlWrapperName
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>._sqlWrapperID
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>._sqlWrapper
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>._params
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.GetWrapper()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.ClearParameters()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.AddParameters(IReadOnlyDictionary<string, string>)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.AddParameter<V>(string, V)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.AddParameter(string, bool)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.AddParameter<V>(string, V?)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.AddAsOfDate(DateTimeOffset)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.AddCanvasID(Guid)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.ClearFilter()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.SetFilter(QueryableExecuter<T>)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.ParametersAreValid()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.GetFilter()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.GetQueryArgumentsAndFilter()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.Execute(CancellationToken)
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.ExecuteCount()
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.Retriever
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.Cache
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.Parameters
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.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
    Assembly: LemonEdge.API.dll
    Syntax
    public class SQLWrapperExecuter<T> : BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>
    Type Parameters
    Name Description
    T

    The complex or entity type that can hold the results of executing the sql wrapper

    Constructors

    SQLWrapperExecuter(ISQLWrapper, IEntityRetriever, IReadOnlyCache)

    Creates a new SQLWrapperExecuter for the specified sql wrapper

    Declaration
    public SQLWrapperExecuter(ISQLWrapper sqlWrapper, IEntityRetriever retriever, IReadOnlyCache cache)
    Parameters
    Type Name Description
    ISQLWrapper sqlWrapper

    The sql wrapper to execute

    IEntityRetriever retriever

    A context to execute the sql wrapper with

    IReadOnlyCache cache

    A local cache

    SQLWrapperExecuter(Guid, IEntityRetriever, IReadOnlyCache)

    Creates a new SQLWrapperExecuter for the specified sql wrapper

    Declaration
    public SQLWrapperExecuter(Guid sqlWrapperID, IEntityRetriever retriever, IReadOnlyCache cache)
    Parameters
    Type Name Description
    Guid sqlWrapperID

    The unique global id of the sql wrapper to execute - must match exactly

    IEntityRetriever retriever

    A context to execute the sql wrapper with

    IReadOnlyCache cache

    A local cache

    SQLWrapperExecuter(string, IEntityRetriever, IReadOnlyCache)

    Creates a new SQLWrapperExecuter for the specified sql wrapper

    Declaration
    public SQLWrapperExecuter(string sqlWrapperName, IEntityRetriever retriever, IReadOnlyCache cache)
    Parameters
    Type Name Description
    string sqlWrapperName

    The name of the sql wrapper to execute - must match exactly

    IEntityRetriever retriever

    A context to execute the sql wrapper with

    IReadOnlyCache cache

    A local cache

    Methods

    Execute(CancellationToken)

    Executes the sql wrapper with the specified parameters and filters. Returns the results as an enumeration of type T

    Declaration
    public override Task<IEnumerable<T>> Execute(CancellationToken token = default)
    Parameters
    Type Name Description
    CancellationToken token
    Returns
    Type Description
    Task<IEnumerable<T>>

    The results of exeucting the sql wrapper as an enumeration of type T

    Overrides
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.Execute(CancellationToken)

    ExecuteCount()

    Executes the sql wrapper with the specified parameters and filters. Returns the total count of the results

    Declaration
    public override Task<int> ExecuteCount()
    Returns
    Type Description
    Task<int>

    The count of the results of exeucting the sql wrapper

    Overrides
    BaseSQLWrapperExecuter<SQLWrapperExecuter<T>, T>.ExecuteCount()

    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.