Share via


MigrationsSqlGenerator.ForeignKeyAction Method

Definition

Generates a SQL fragment for the given referential action.

protected virtual void ForeignKeyAction (Microsoft.EntityFrameworkCore.Migrations.ReferentialAction referentialAction, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member ForeignKeyAction : Microsoft.EntityFrameworkCore.Migrations.ReferentialAction * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.ForeignKeyAction : Microsoft.EntityFrameworkCore.Migrations.ReferentialAction * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub ForeignKeyAction (referentialAction As ReferentialAction, builder As MigrationCommandListBuilder)

Parameters

referentialAction
ReferentialAction

The referential action.

builder
MigrationCommandListBuilder

The command builder to use to add the SQL fragment.

Applies to