Search Results for

    Show / Hide Table of Contents

    Class EntityHasPivotAttribute

    Indicates this entity contains information held in a sub table that can be pivotted and displayed against this record too.

    This will ensure exports, and imports will allow reference to the pivotted values against this entity record too

    Inheritance
    object
    Attribute
    EntityHasPivotAttribute
    Inherited Members
    Attribute.GetCustomAttributes(MemberInfo, Type)
    Attribute.GetCustomAttributes(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(MemberInfo)
    Attribute.GetCustomAttributes(MemberInfo, bool)
    Attribute.IsDefined(MemberInfo, Type)
    Attribute.IsDefined(MemberInfo, Type, bool)
    Attribute.GetCustomAttribute(MemberInfo, Type)
    Attribute.GetCustomAttribute(MemberInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo)
    Attribute.GetCustomAttributes(ParameterInfo, Type)
    Attribute.GetCustomAttributes(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(ParameterInfo, bool)
    Attribute.IsDefined(ParameterInfo, Type)
    Attribute.IsDefined(ParameterInfo, Type, bool)
    Attribute.GetCustomAttribute(ParameterInfo, Type)
    Attribute.GetCustomAttribute(ParameterInfo, Type, bool)
    Attribute.GetCustomAttributes(Module, Type)
    Attribute.GetCustomAttributes(Module)
    Attribute.GetCustomAttributes(Module, bool)
    Attribute.GetCustomAttributes(Module, Type, bool)
    Attribute.IsDefined(Module, Type)
    Attribute.IsDefined(Module, Type, bool)
    Attribute.GetCustomAttribute(Module, Type)
    Attribute.GetCustomAttribute(Module, Type, bool)
    Attribute.GetCustomAttributes(Assembly, Type)
    Attribute.GetCustomAttributes(Assembly, Type, bool)
    Attribute.GetCustomAttributes(Assembly)
    Attribute.GetCustomAttributes(Assembly, bool)
    Attribute.IsDefined(Assembly, Type)
    Attribute.IsDefined(Assembly, Type, bool)
    Attribute.GetCustomAttribute(Assembly, Type)
    Attribute.GetCustomAttribute(Assembly, Type, bool)
    Attribute.Equals(object)
    Attribute.GetHashCode()
    Attribute.Match(object)
    Attribute.IsDefaultAttribute()
    Attribute.TypeId
    object.GetType()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Attributes
    Assembly: LemonEdge.API.dll
    Syntax
    [AttributeUsage(AttributeTargets.Interface)]
    public sealed class EntityHasPivotAttribute : Attribute
    Remarks

    For example you could have the following entities: Person +Name Skills +Name SkillCompetencyLevels +SkillID +Name PersonSkill +PersonID +SkillID +SkillCompetencyLevelID This attribute would allow you mark the Person entity as so: [PersonSkillID, nameof(PersonSkill.PersonID), nameof(PersonSkill.SkillID), nameof(PersonSkill.SkillCompetencyLevelID)] Assuming we had the following skills: Accounting, Excel, Coding This would allow you import/export of the person entity with the following headers automatically from the system: PersonID, PersonName, PersonSkill_Accounting, PersonSkill_Excel, PersonSkill_Coding Which you could then populate with skill competency level values for the PersonSkill columns.

    Constructors

    EntityHasPivotAttribute(EntityID, string, string, string)

    Marks this entity as wanting extra columns in export/imports that hold pivotted sub table information

    Declaration
    public EntityHasPivotAttribute(EntityID id, string pivotLinkColumn, string pivotHeaderColumn, string pivotValueColumn = "")
    Parameters
    Type Name Description
    EntityID id

    The unique global id of the entity that holds the information to be pivotted as columns against this entity

    string pivotLinkColumn

    The name of the column on that entity that holds a relationship back to this entity

    string pivotHeaderColumn

    The name of the column on that entity that holds values that should be represented as distinct column headers against this entity

    string pivotValueColumn

    The name of the column on that entity that holds the value associated with this entity for that pivotHeaderColumn

    EntityHasPivotAttribute(string, string, string, string)

    Marks this entity as wanting extra columns in export/imports that hold pivotted sub table information

    Declaration
    public EntityHasPivotAttribute(string entityID, string pivotLinkColumn, string pivotHeaderColumn, string pivotValueColumn = "")
    Parameters
    Type Name Description
    string entityID

    The unique global id of the entity that holds the information to be pivotted as columns against this entity

    string pivotLinkColumn

    The name of the column on that entity that holds a relationship back to this entity

    string pivotHeaderColumn

    The name of the column on that entity that holds values that should be represented as distinct column headers against this entity

    string pivotValueColumn

    The name of the column on that entity that holds the value associated with this entity for that pivotHeaderColumn

    Properties

    Info

    The definition for the entity that holds pivot information to be displayed alongside this entity

    Declaration
    public PivotTableInfo Info { get; }
    Property Value
    Type Description
    PivotTableInfo

    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

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