Table of Contents

Class IndexedAttribute

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

Indicates that a property or field affects index creation.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class IndexedAttribute : Attribute
Inheritance
IndexedAttribute
Inherited Members

Constructors

IndexedAttribute()

Initializes a new instance of the IndexedAttribute class with default settings.

public IndexedAttribute()

IndexedAttribute(string)

Initializes a new instance of the IndexedAttribute class with the specified names of additional columns.

public IndexedAttribute(string additionalFields)

Parameters

additionalFields string

A string value that specifies the names of additional columns, separated by a semicolon. This value is parsed and assigned to the IndexedAttribute.AdditionalFields property.

IndexedAttribute(string, string)

Initializes a new instance of the IndexedAttribute class with the specified names of additional columns.

public IndexedAttribute(string additionalField1, string additionalField2)

Parameters

additionalField1 string

A string containing the name of the first additional column.

additionalField2 string

A string containing the name of the second additional column.

IndexedAttribute(string, string, string)

Initializes a new instance of the IndexedAttribute class with the specified names of additional columns.

public IndexedAttribute(string additionalField1, string additionalField2, string additionalField3)

Parameters

additionalField1 string

A string containing the name of the first additional column.

additionalField2 string

A string containing the name of the second additional column.

additionalField3 string

A string containing the name of the third additional column.

IndexedAttribute(params string[])

Initializes a new instance of the IndexedAttribute class with the specified names of additional columns.

public IndexedAttribute(params string[] additionalFields)

Parameters

additionalFields string[]

An array of string values that specify the names of additional columns. This value is assigned to the IndexedAttribute.AdditionalFields property.

Properties

AdditionalFields

Gets the names of additional columns that affect index creation.

public StringCollection AdditionalFields { get; }

Property Value

StringCollection

A collection of string values that specify the names of additional columns.

Name

Gets or sets the name of the index.

public string Name { get; set; }

Property Value

string

A string value that specifies the name of the index.

Unique

Gets or sets whether the index created by a property or field is a unique one.

public bool Unique { get; set; }

Property Value

bool

true if the index must be unique (no two persistent objects are permitted to have the same index value); otherwise, false.