Search Results for

    Show / Hide Table of Contents

    Class IndexAttribute

    Attribute that represents an Index

    Inheritance
    System.Object
    System.Attribute
    Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
    Assembly: cs.temp.dll.dll
    Syntax
    [AttributeUsage(AttributeTargets.Property)]
    public class IndexAttribute : Attribute, _Attribute

    Constructors

    IndexAttribute(IndexTypes)

    Declaration
    public IndexAttribute(IndexTypes indexType)
    Parameters
    Type Name Description
    IndexTypes indexType

    Properties

    ForColumns

    Gets or sets the column name(s) for the current index

    Declaration
    public string ForColumns { get; set; }
    Property Value
    Type Description
    System.String

    IncludeColumns

    Gets or sets the column name(s) for the columns to include in the index

    Declaration
    public string IncludeColumns { get; set; }
    Property Value
    Type Description
    System.String

    IndexType

    Gets or sets the type of index to create

    Declaration
    public IndexTypes IndexType { get; }
    Property Value
    Type Description
    IndexTypes

    Name

    Gets or sets the name of the Index

    Declaration
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Overrides default naming of indexes: IX_tableName

    In This Article
    • Constructors
      • IndexAttribute(IndexTypes)
    • Properties
      • ForColumns
      • IncludeColumns
      • IndexType
      • Name
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX