Udostępnij za pośrednictwem


IndexAttribute Konstruktory

Definicja

Przeciążenia

IndexAttribute(String[])
Przestarzałe.

Inicjuje nowe wystąpienie klasy IndexAttribute.

IndexAttribute(String, String[])

Inicjuje nowe wystąpienie klasy IndexAttribute.

IndexAttribute(String[])

Przestroga

Use the other constructor

Inicjuje nowe wystąpienie klasy IndexAttribute.

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())

Parametry

propertyNames
String[]

Właściwości, które składają się na indeks, w kolejności (musi istnieć co najmniej jeden).

Atrybuty

Dotyczy

IndexAttribute(String, String[])

Inicjuje nowe wystąpienie klasy IndexAttribute.

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())

Parametry

propertyName
String

Pierwsza (lub tylko) właściwość w indeksie.

additionalPropertyNames
String[]

Dodatkowe właściwości, które stanowią indeks, jeśli istnieje, w kolejności.

Dotyczy