Condividi tramite


AddPrimaryKeyOperation.CreateFrom(IPrimaryKeyConstraint) Metodo

Definizione

Crea un nuovo AddPrimaryKeyOperation oggetto dalla chiave primaria specificata.

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

Parametri

primaryKey
IPrimaryKeyConstraint

Chiave primaria.

Restituisce

Operazione.

Si applica a