PropertyExtensions.IsKey(IProperty) Yöntem

Tanım

Dikkat

Use IReadOnlyProperty.IsKey

Bu özelliğin birincil anahtar olarak mı yoksa alternatif anahtar olarak mı (veya bileşik birincil veya alternatif anahtarın bir parçası) olarak mı kullan gerektiğini belirten bir değer alır.

public static bool IsKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IReadOnlyProperty.IsKey")]
public static bool IsKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member IsKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
[<System.Obsolete("Use IReadOnlyProperty.IsKey")>]
static member IsKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> bool
<Extension()>
Public Function IsKey (property As IProperty) As Boolean

Parametreler

property
IProperty

Denetlenecek özellik.

Döndürülenler

Boolean

true özelliği anahtar olarak kullanılıyorsa, değilse false .

Öznitelikler

Şunlara uygulanır