Bahasa

IndexAttribute Kelas

Definisi

Menentukan indeks yang akan dihasilkan dalam database.

[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
Warisan
IndexAttribute
Atribut

Keterangan

Lihat Pemodelan jenis entitas dan hubungan untuk informasi dan contoh selengkapnya.

Konstruktor

Nama Deskripsi
IndexAttribute(String, String[])

Menginisialisasi instans baru dari kelas IndexAttribute.

IndexAttribute(String[])
Kedaluwarsa.

Menginisialisasi instans baru dari kelas IndexAttribute.

Properti

Nama Deskripsi
AllDescending

Apakah semua kolom indeks memiliki urutan urutan menurun.

IsDescending

Sekumpulan nilai yang menunjukkan apakah setiap kolom indeks terkait memiliki urutan pengurutan menurun.

IsUnique

Apakah indeks unik.

IsUniqueHasValue

Memeriksa apakah IsUnique telah secara eksplisit diatur ke nilai.

Name

Nama indeks.

PropertyNames

Properti yang merupakan indeks, secara berurutan.

Berlaku untuk