PropertyExtensions.GetContainingPrimaryKey(IProperty) Méthode

Définition

Attention

Use FindContainingPrimaryKey()

Obtient la clé primaire qui utilise cette propriété (y compris une clé primaire composite dans laquelle cette propriété est incluse).

public static Microsoft.EntityFrameworkCore.Metadata.IKey GetContainingPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use FindContainingPrimaryKey()")]
public static Microsoft.EntityFrameworkCore.Metadata.IKey GetContainingPrimaryKey (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetContainingPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IKey
[<System.Obsolete("Use FindContainingPrimaryKey()")>]
static member GetContainingPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.IKey
<Extension()>
Public Function GetContainingPrimaryKey (property As IProperty) As IKey

Paramètres

property
IProperty

Propriété pour laquelle obtenir la clé primaire.

Retours

Principal qui utilise cette propriété, ou null si elle ne fait pas partie de la clé primaire.

Attributs

S’applique à