Table of Contents

Class IndicesAttribute

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

Specifies the properties that affect the creation of non-unique database indices.

[AttributeUsage(AttributeTargets.Class, Inherited = true)]
public sealed class IndicesAttribute : Attribute
Inheritance
IndicesAttribute
Inherited Members

Constructors

IndicesAttribute()

Initializes a new instance of IndicesAttribute without specifying any indices.

public IndicesAttribute()

IndicesAttribute(string)

Initializes a new instance of IndicesAttribute, and specifies the properties participating in the creation of a database index.

public IndicesAttribute(string index)

Parameters

index string

A string containing a list of the properties participating in the creation of a database index, separated by a semicolon. This parameter value is used to initialize the IndicesAttribute.Indices collection.

IndicesAttribute(string, string)

Initializes a new instance of IndicesAttribute, and specifies the properties participating in the creation of two database indices.

public IndicesAttribute(string index1, string index2)

Parameters

index1 string

A string containing a list of the properties participating in the creation of the first database index, separated by a semicolon. This parameter value is used to initialize the IndicesAttribute.Indices collection.

index2 string

A string containing a list of the properties participating in the creation of the second database index, separated by a semicolon. This parameter value is used to initialize the IndicesAttribute.Indices collection.

IndicesAttribute(string, string, string)

Initializes a new instance of IndicesAttribute, and specifies the properties participating in the creation of three database indices.

public IndicesAttribute(string index1, string index2, string index3)

Parameters

index1 string

A string containing a list of the properties participating in the creation of the first database index, separated by a semicolon. This parameter value is used to initialize the IndicesAttribute.Indices collection.

index2 string

A string containing a list of the properties participating in the creation of the second database index, separated by a semicolon. This parameter value is used to initialize the IndicesAttribute.Indices collection.

index3 string

A string containing a list of the properties participating in the creation of the third database index, separated by a semicolon. This parameter value is used to initialize the IndicesAttribute.Indices collection.

IndicesAttribute(params string[])

Initializes a new instance of IndicesAttribute, and specifies the properties participating in the creation of several database indices.

public IndicesAttribute(params string[] indices)

Parameters

indices string[]

Zero or more strings, each of which contains a list of the properties participating in the creation of a database index, separated by a semicolon. This parameter value is used to initialize the IndicesAttribute.Indices collection.

Properties

Indices

Specifies the properties participating in the creation of non-unique database indices.

public IList<StringCollection> Indices { get; }

Property Value

IList<StringCollection>

An IList<StringCollection> collection of strings, each of which contains a list of the properties participating in the creation of a database index, separated by a semicolon.