共用方式為


SqlServerMigrationsSqlGenerator.ForeignKeyAction 方法

定義

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

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

參數

referentialAction
ReferentialAction

引用動作。

builder
MigrationCommandListBuilder

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

適用於