共用方式為


MigrationsSqlGenerator.EndStatement 方法

定義

產生 SQL 片段以終止 SQL 命令。

protected virtual void EndStatement (Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, bool suppressTransaction = false);
abstract member EndStatement : Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
override this.EndStatement : Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * bool -> unit
Protected Overridable Sub EndStatement (builder As MigrationCommandListBuilder, Optional suppressTransaction As Boolean = false)

參數

builder
MigrationCommandListBuilder

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

suppressTransaction
Boolean

指出在執行建置命令時是否應該隱藏交易。

適用於