AddForeignKeyOperation.CreateFrom(IForeignKeyConstraint) Method

Definition

Creates a new AddForeignKeyOperation from the specified foreign key.

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

Parameters

foreignKey
IForeignKeyConstraint

The foreign key.

Returns

The operation.

Applies to