Compartir a través de


AddPrimaryKeyOperation.CreateFrom(IPrimaryKeyConstraint) Método

Definición

Crea un nuevo AddPrimaryKeyOperation a partir de la clave principal especificada.

public static Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation CreateFrom (Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint primaryKey);
static member CreateFrom : Microsoft.EntityFrameworkCore.Metadata.IPrimaryKeyConstraint -> Microsoft.EntityFrameworkCore.Migrations.Operations.AddPrimaryKeyOperation
Public Shared Function CreateFrom (primaryKey As IPrimaryKeyConstraint) As AddPrimaryKeyOperation

Parámetros

primaryKey
IPrimaryKeyConstraint

Clave principal.

Devoluciones

Operación.

Se aplica a