Search Results for

    Show / Hide Table of Contents

    Class EntityIndexAttribute

    Specifies an index to be created on the table for this entity

    Inheritance
    object
    Attribute
    EntityIndexAttribute
    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.MemberwiseClone()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Attributes
    Assembly: LemonEdge.API.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, Inherited = false, AllowMultiple = true)]
    public class EntityIndexAttribute : Attribute

    Constructors

    EntityIndexAttribute()

    Declaration
    public EntityIndexAttribute()

    Fields

    PRIMARY

    Primary index

    Declaration
    public const string PRIMARY = "PRIMARY"
    Field Value
    Type Description
    string

    Properties

    ColumnNames

    The list of columns for this index

    Declaration
    public string[] ColumnNames { get; set; }
    Property Value
    Type Description
    string[]

    IncludeColumns

    The list of columns that should also be included within the index, but are not part of the index itself

    Declaration
    public string[] IncludeColumns { get; set; }
    Property Value
    Type Description
    string[]

    IndexOrder

    The associated order of each column in the index

    Declaration
    public IndexOrder[] IndexOrder { get; set; }
    Property Value
    Type Description
    IndexOrder[]

    IsClustered

    Indicates if this index is clustered.

    The system already creates the default clustered index for you unless EntityDefinitionAttribute.AutoClusteredIndexes is set to false

    Declaration
    public bool IsClustered { get; set; }
    Property Value
    Type Description
    bool

    IsUnique

    Indicates the combination of columns in ColumnNames results in each row holding unique values

    Declaration
    public bool IsUnique { get; set; }
    Property Value
    Type Description
    bool

    Name

    The name for the index

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    string

    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

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