Bagikan melalui


RuntimeProperty.IReadOnlyProperty.IsKey Metode

Definisi

Mendapatkan nilai yang menunjukkan apakah properti ini digunakan sebagai kunci primer atau kunci alternatif (atau bagian dari kunci primer atau alternatif komposit).

[System.Diagnostics.DebuggerStepThrough]
bool IReadOnlyProperty.IsKey ();
[<System.Diagnostics.DebuggerStepThrough>]
abstract member Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.IsKey : unit -> bool
override this.Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty.IsKey : unit -> bool
Function IsKey () As Boolean Implements IReadOnlyProperty.IsKey

Mengembalikan

true jika properti digunakan sebagai kunci, jika tidak false.

Penerapan

Atribut

Berlaku untuk