Sdílet prostřednictvím


MutablePropertyExtensions.GetContainingPrimaryKey(IMutableProperty) Metoda

Definice

Upozornění

Use FindContainingPrimaryKey()

Získá primární klíč, který používá tuto vlastnost (včetně složeného primárního klíče, ve kterém je tato vlastnost zahrnuta).

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

Parametry

property
IMutableProperty

Vlastnost, pro která se má získat primární klíč.

Návraty

Primární, která používá tuto vlastnost, nebo null pokud není součástí primárního klíče.

Atributy

Platí pro