Udostępnij za pośrednictwem


AddForeignKeyOperation.CreateFrom(IForeignKeyConstraint) Metoda

Definicja

Tworzy nowy AddForeignKeyOperation na podstawie określonego klucza obcego.

public static Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation CreateFrom (Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint foreignKey);
static member CreateFrom : Microsoft.EntityFrameworkCore.Metadata.IForeignKeyConstraint -> Microsoft.EntityFrameworkCore.Migrations.Operations.AddForeignKeyOperation
Public Shared Function CreateFrom (foreignKey As IForeignKeyConstraint) As AddForeignKeyOperation

Parametry

foreignKey
IForeignKeyConstraint

Klucz obcy.

Zwraca

Operacja.

Dotyczy