MutablePropertyExtensions.GetContainingPrimaryKey(IMutableProperty) Método

Definición

Precaución

Use FindContainingPrimaryKey()

Obtiene la clave principal que usa esta propiedad (incluida una clave principal compuesta en la que se incluye esta propiedad).

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

Parámetros

property
IMutableProperty

Propiedad para la que se va a obtener la clave principal.

Devoluciones

Principal que usa esta propiedad o null si no forma parte de la clave principal.

Atributos

Se aplica a