PropertyExtensions.IsForeignKey(IProperty) Méthode

Définition

Attention

Use IReadOnlyProperty.IsForeignKey

Obtient une valeur indiquant si cette propriété est utilisée en tant que clé étrangère (ou partie d’une clé étrangère composite).

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

Paramètres

property
IProperty

Propriété à vérifier.

Retours

true si la propriété est utilisée comme clé étrangère, sinon false.

Attributs

S’applique à