AddForeignKeyOperation.CreateFrom(IForeignKeyConstraint) Metoda

Definice

Vytvoří nový AddForeignKeyOperation ze zadaného cizího klíče.

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

Cizí klíč.

Návraty

Operace.

Platí pro