UpdateSqlGenerator.AppendSelectAffectedCountCommand Method

Definition

Appends a SQL command for selecting the number of rows affected.

C#
protected virtual Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendSelectAffectedCountCommand (System.Text.StringBuilder commandStringBuilder, string name, string schema, int commandPosition);
C#
protected virtual Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendSelectAffectedCountCommand (System.Text.StringBuilder commandStringBuilder, string name, string? schema, int commandPosition);

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.

commandPosition
Int32

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

Returns

The ResultSetMapping for this command.

Applies to

Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0