Язык

IndexAttribute Класс

Определение

Указывает индекс для создания в базе данных.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class IndexAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class IndexAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type IndexAttribute = class
    inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type IndexAttribute = class
    inherit Attribute
Public NotInheritable Class IndexAttribute
Inherits Attribute
Наследование
IndexAttribute
Атрибуты

Комментарии

Дополнительные сведения и примеры см. в разделе " Типы сущностей моделирования" и "Связи ".

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

Имя. Описание
IndexAttribute(String, String[])

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

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

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

Свойства

Имя. Описание
AllDescending

У всех столбцов индекса порядок сортировки по убыванию.

IsDescending

Набор значений, указывающий, имеет ли каждый соответствующий столбец индекса порядок сортировки по убыванию.

IsUnique

Является ли индекс уникальным.

IsUniqueHasValue

Проверяет, задано ли IsUnique явное значение.

Name

Имя индекса.

PropertyNames

Свойства, составляющие индекс, в порядке.

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