Share via


PropertyExtensions.IsPrimaryKey(IProperty) Methode

Definition

Achtung

Use IReadOnlyProperty.IsPrimaryKey

Ruft einen Wert ab, der angibt, ob diese Eigenschaft als Primärschlüssel (oder Teil eines zusammengesetzten Primärschlüssels) verwendet wird.

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

Parameter

property
IProperty

Die zu überprüfende Eigenschaft.

Gibt zurück

true , wenn die -Eigenschaft als Primärschlüssel verwendet wird, andernfalls false.

Attribute

Gilt für: