Language

UpdateAndSelectSqlGenerator.AppendInsertAndSelectOperations メソッド

定義

作成するコマンドに行を挿入するための SQL を追加します。INSERT を使用し、その後にオプションの SELECT を使用してデータベースで生成された値を取得します。

protected virtual Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendInsertAndSelectOperations(System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand command, int commandPosition, out bool requiresTransaction);
abstract member AppendInsertAndSelectOperations : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
override this.AppendInsertAndSelectOperations : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
Protected Overridable Function AppendInsertAndSelectOperations (commandStringBuilder As StringBuilder, command As IReadOnlyModificationCommand, commandPosition As Integer, ByRef requiresTransaction As Boolean) As ResultSetMapping

パラメーター

commandStringBuilder
StringBuilder

SQL を追加するビルダー。

command
IReadOnlyModificationCommand

削除操作を表すコマンド。

commandPosition
Int32

バッチ内のこのコマンドの序数。

requiresTransaction
Boolean

正常に動作するために、追加された SQL をトランザクションで実行する必要があるかどうかを返します。

戻り値

コマンドの ResultSetMapping 。

適用対象