Class IndexAttribute
Attribute that represents an Index
Inheritance
System.Object
System.Attribute
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.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 |
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