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

指示在执行生成的命令时是否应取消事务。

适用于