Share via


IndexAttribute Constructors

Definition

Overloads

IndexAttribute(String[])
Obsolete.

Initializes a new instance of the IndexAttribute class.

IndexAttribute(String, String[])

Initializes a new instance of the IndexAttribute class.

IndexAttribute(String[])

Caution

Use the other constructor

Initializes a new instance of the IndexAttribute class.

public IndexAttribute (params string[] propertyNames);
[System.Obsolete("Use the other constructor")]
public IndexAttribute (params string[] propertyNames);
new Microsoft.EntityFrameworkCore.IndexAttribute : string[] -> Microsoft.EntityFrameworkCore.IndexAttribute
[<System.Obsolete("Use the other constructor")>]
new Microsoft.EntityFrameworkCore.IndexAttribute : string[] -> Microsoft.EntityFrameworkCore.IndexAttribute
Public Sub New (ParamArray propertyNames As String())

Parameters

propertyNames
String[]

The properties which constitute the index, in order (there must be at least one).

Attributes

Applies to

IndexAttribute(String, String[])

Initializes a new instance of the IndexAttribute class.

public IndexAttribute (string propertyName, params string[] additionalPropertyNames);
new Microsoft.EntityFrameworkCore.IndexAttribute : string * string[] -> Microsoft.EntityFrameworkCore.IndexAttribute
Public Sub New (propertyName As String, ParamArray additionalPropertyNames As String())

Parameters

propertyName
String

The first (or only) property in the index.

additionalPropertyNames
String[]

The additional properties which constitute the index, if any, in order.

Applies to