Share via


UpdateAndSelectSqlGenerator.AppendSelectAffectedCommand Method

Definition

Appends a SQL command for selecting affected data.

protected virtual Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendSelectAffectedCommand (System.Text.StringBuilder commandStringBuilder, string name, string? schema, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IColumnModification> readOperations, System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IColumnModification> conditionOperations, int commandPosition);
abstract member AppendSelectAffectedCommand : System.Text.StringBuilder * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IColumnModification> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IColumnModification> * int -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
override this.AppendSelectAffectedCommand : System.Text.StringBuilder * string * string * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IColumnModification> * System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Update.IColumnModification> * int -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
Protected Overridable Function AppendSelectAffectedCommand (commandStringBuilder As StringBuilder, name As String, schema As String, readOperations As IReadOnlyList(Of IColumnModification), conditionOperations As IReadOnlyList(Of IColumnModification), commandPosition As Integer) As ResultSetMapping

Parameters

commandStringBuilder
StringBuilder

The builder to which the SQL should be appended.

name
String

The name of the table.

schema
String

The table schema, or null to use the default schema.

readOperations
IReadOnlyList<IColumnModification>

The operations representing the data to be read.

conditionOperations
IReadOnlyList<IColumnModification>

The operations used to generate the WHERE clause for the select.

commandPosition
Int32

The ordinal of the command for which rows affected it being returned.

Returns

The ResultSetMapping for this command.

Applies to