PropertyExtensions.IsPrimaryKey(IProperty) Yöntem

Tanım

Dikkat

Use IReadOnlyProperty.IsPrimaryKey

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

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

Parametreler

property
IProperty

Denetlenecek özellik.

Döndürülenler

Boolean

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

Öznitelikler

Şunlara uygulanır