AddForeignKeyOperation.CreateFrom(IForeignKeyConstraint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.