共用方式為


MigrationsSqlGenerator.ForeignKeyAction 方法

定義

為指定的引用動作產生 SQL 片段。

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)

參數

referentialAction
ReferentialAction

參考動作。

builder
MigrationCommandListBuilder

用來加入 SQL 片段的命令產生器。

適用於