Condividi tramite


AddForeignKeyOperation.CreateFrom(IForeignKeyConstraint) Metodo

Definizione

Crea un nuovo AddForeignKeyOperation oggetto dalla chiave esterna specificata.

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

Parametri

foreignKey
IForeignKeyConstraint

Chiave esterna.

Restituisce

Operazione.

Si applica a