Search Results for

    Show / Hide Table of Contents
    View Source

    Class IndexAttribute

    Attribute that represents an Index

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseAnnotations
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class IndexAttribute : Attribute

    Constructors

    View Source

    IndexAttribute(IndexTypes)

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

    Properties

    View Source

    ForColumns

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

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

    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
    View Source

    IndexType

    Gets or sets the type of index to create

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

    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

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