Search Results for

    Show / Hide Table of Contents

    Class PivotInterpretaor

    A helper class for interpreting IPivot entity settings

    Inheritance
    object
    PivotInterpretaor
    Inherited Members
    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 PivotInterpretaor

    Constructors

    PivotInterpretaor(IPivot)

    Creates a new pivot interpretor for the specified pivot

    Declaration
    public PivotInterpretaor(IPivot pivot)
    Parameters
    Type Name Description
    IPivot pivot

    The pivot to use for this interpretor

    PivotInterpretaor(Guid)

    Creates a new pivot interpretor for the unique global id of a pivot record

    Declaration
    public PivotInterpretaor(Guid id)
    Parameters
    Type Name Description
    Guid id

    The unique global id of a pivot

    Properties

    Fields

    An enumeration of all fields in the pivot

    Declaration
    public IEnumerable<IPivotFieldInfo> Fields { get; }
    Property Value
    Type Description
    IEnumerable<IPivotFieldInfo>

    Loaded

    Indicates if this interpretor has been loaded or not yet

    Declaration
    public bool Loaded { get; }
    Property Value
    Type Description
    bool

    Pivot

    The pivot this interpretor is using

    Declaration
    public IPivot Pivot { get; }
    Property Value
    Type Description
    IPivot

    SQLWrapper

    The sql wrapper interpretor that backs this pivot

    Declaration
    public SQLWrapperInterpretor SQLWrapper { get; }
    Property Value
    Type Description
    SQLWrapperInterpretor

    Methods

    Load(IEntityRetriever)

    Loads the specified pivot and its associated sql wrapper interpretor

    Declaration
    public Task Load(IEntityRetriever retriever)
    Parameters
    Type Name Description
    IEntityRetriever retriever

    The context to load this pivot in. Used when the pivot or sql wrapper could be being changed by the user.

    Returns
    Type Description
    Task

    A task indicating the completion of this operation

    Load(IReadOnlyCache)

    Loads the specified pivot and its associated sql wrapper interpretor

    Declaration
    public Task Load(IReadOnlyCache cache)
    Parameters
    Type Name Description
    IReadOnlyCache cache

    A local cache. Used when the pivot just needs to be loaded and displayed/executed, not when the user could be modifying it

    Returns
    Type Description
    Task

    A task indicating the completion of this operation

    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

    ChartProcessor
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.