Share via


PropertyExtensions.IsForeignKey(IProperty) Methode

Definition

Achtung

Use IReadOnlyProperty.IsForeignKey

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

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

Parameter

property
IProperty

Die zu überprüfende Eigenschaft.

Gibt zurück

true , wenn die -Eigenschaft als Fremdschlüssel verwendet wird, andernfalls false.

Attribute

Gilt für: