Share via


UpdateAndSelectSqlGenerator.AppendUpdateAndSelectOperation Method

Definition

Appends SQL for updating a row to the commands being built, via an UPDATE followed by a SELECT to retrieve any database-generated values or for concurrency checking.

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

Parameters

commandStringBuilder
StringBuilder

The builder to which the SQL should be appended.

command
IReadOnlyModificationCommand

The command that represents the delete operation.

commandPosition
Int32

The ordinal of this command in the batch.

requiresTransaction
Boolean

Returns whether the SQL appended must be executed in a transaction to work correctly.

Returns

The ResultSetMapping for the command.

Applies to