Jazyk

IndexAttribute Třída

Definice

Určuje index, který se má vygenerovat v databázi.

[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
Dědičnost
IndexAttribute
Atributy

Poznámky

Další informace a příklady najdete v tématu Modelování typů entit a relací .

Konstruktory

Název Description
IndexAttribute(String, String[])

Inicializuje novou instanci IndexAttribute třídy.

IndexAttribute(String[])
Zastaralé.

Inicializuje novou instanci IndexAttribute třídy.

Vlastnosti

Název Description
AllDescending

Určuje, jestli mají všechny sloupce indexu sestupné pořadí řazení.

IsDescending

Sada hodnot označující, zda má každý odpovídající sloupec indexu sestupné pořadí řazení.

IsUnique

Určuje, jestli je index jedinečný.

IsUniqueHasValue

Zkontroluje, jestli IsUnique je explicitně nastavená hodnota.

Name

Název indexu.

PropertyNames

Vlastnosti, které tvoří index, v pořadí.

Platí pro