MutablePropertyExtensions.GetContainingPrimaryKey(IMutableProperty) Methode

Definition

Achtung

Use FindContainingPrimaryKey()

Ruft den Primärschlüssel ab, der diese Eigenschaft verwendet (einschließlich eines zusammengesetzten Primärschlüssels, in dem diese Eigenschaft enthalten ist).

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

Parameter

property
IMutableProperty

Die Eigenschaft, für die der Primärschlüssel abgerufen werden soll.

Gibt zurück

Der primäre, der diese Eigenschaft verwendet, oder null , wenn es nicht Teil des Primärschlüssels ist.

Attribute

Gilt für: