Udostępnij za pośrednictwem


AddPrimaryKeyOperation.CreateFrom(IPrimaryKeyConstraint) Metoda

Definicja

Tworzy nowy AddPrimaryKeyOperation element z określonego klucza podstawowego.

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

Parametry

primaryKey
IPrimaryKeyConstraint

Klucz podstawowy.

Zwraca

Operacja.

Dotyczy