PropertyExtensions.IsForeignKey(IProperty) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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