Поделиться через


IndexAttribute Конструкторы

Определение

Перегрузки

IndexAttribute(String[])
Устаревшие..

Инициализирует новый экземпляр класса IndexAttribute.

IndexAttribute(String, String[])

Инициализирует новый экземпляр класса IndexAttribute.

IndexAttribute(String[])

Внимание!

Use the other constructor

Инициализирует новый экземпляр класса 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())

Параметры

propertyNames
String[]

Свойства, составляющие индекс, по порядку (должно быть по крайней мере одно).

Атрибуты

Применяется к

IndexAttribute(String, String[])

Инициализирует новый экземпляр класса 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())

Параметры

propertyName
String

Первое (или единственное) свойство в индексе.

additionalPropertyNames
String[]

Дополнительные свойства, составляющие индекс, если таковые есть, по порядку.

Применяется к