Język

IndexAttribute Klasa

Definicja

Określa indeks do wygenerowania w bazie danych.

[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
Dziedziczenie
IndexAttribute
Atrybuty

Uwagi

Aby uzyskać więcej informacji i przykładów, zobacz Modelowanie typów jednostek i relacji .

Konstruktory

Nazwisko Opis
IndexAttribute(String, String[])

Inicjuje nowe wystąpienie klasy IndexAttribute.

IndexAttribute(String[])
Przestarzałe.

Inicjuje nowe wystąpienie klasy IndexAttribute.

Właściwości

Nazwisko Opis
AllDescending

Czy wszystkie kolumny indeksu mają malejącą kolejność sortowania.

IsDescending

Zestaw wartości wskazujący, czy każda odpowiadająca kolumna indeksu ma kolejność sortowania malejącego.

IsUnique

Czy indeks jest unikatowy.

IsUniqueHasValue

Sprawdza, czy IsUnique jawnie ustawiono wartość.

Name

Nazwa indeksu.

PropertyNames

Właściwości, które składają się na indeks, w kolejności.

Dotyczy