PropertyExtensions.IsPrimaryKey(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.IsPrimaryKey
Obtient une valeur indiquant si cette propriété est utilisée comme clé primaire (ou comme partie d’une clé primaire composite).
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
Paramètres
- property
- IProperty
Propriété à vérifier.
Retours
true si la propriété est utilisée comme clé primaire , sinon false.
- Attributs