Share via


IndexAttribute Constructors

Definition

Overloads

IndexAttribute()

Creates a IndexAttribute instance for an index that will be named by convention and has no column order, clustering, or uniqueness specified.

IndexAttribute(String)

Creates a IndexAttribute instance for an index with the given name and has no column order, clustering, or uniqueness specified.

IndexAttribute(String, Int32)

Creates a IndexAttribute instance for an index with the given name and column order, but with no clustering or uniqueness specified.

IndexAttribute()

Creates a IndexAttribute instance for an index that will be named by convention and has no column order, clustering, or uniqueness specified.

public IndexAttribute ();
Public Sub New ()

Applies to

IndexAttribute(String)

Creates a IndexAttribute instance for an index with the given name and has no column order, clustering, or uniqueness specified.

public IndexAttribute (string name);
new System.ComponentModel.DataAnnotations.Schema.IndexAttribute : string -> System.ComponentModel.DataAnnotations.Schema.IndexAttribute
Public Sub New (name As String)

Parameters

name
String

The index name.

Applies to

IndexAttribute(String, Int32)

Creates a IndexAttribute instance for an index with the given name and column order, but with no clustering or uniqueness specified.

public IndexAttribute (string name, int order);
new System.ComponentModel.DataAnnotations.Schema.IndexAttribute : string * int -> System.ComponentModel.DataAnnotations.Schema.IndexAttribute
Public Sub New (name As String, order As Integer)

Parameters

name
String

The index name.

order
Int32

A number which will be used to determine column ordering for multi-column indexes.

Remarks

Multi-column indexes are created by using the same index name in multiple attributes. The information in these attributes is then merged together to specify the actual database index.

Applies to