Compartilhar via


AddPrimaryKeyOperation.CreateFrom(IPrimaryKeyConstraint) Método

Definição

Cria um novo AddPrimaryKeyOperation da chave primária 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

A chave principal.

Retornos

A operação.

Aplica-se a