语言

UpdateAndSelectSqlGenerator.AppendUpdateAndSelectOperation 方法

定义

通过 UPDATE 追加 SQL 以将行更新到要生成的命令,然后通过 SELECT 检索任何数据库生成的值或进行并发检查。

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

参数

commandStringBuilder
StringBuilder

应向其追加 SQL 的生成器。

command
IReadOnlyModificationCommand

表示删除操作的命令。

commandPosition
Int32

批处理中此命令的序号。

requiresTransaction
Boolean

返回是否必须在事务中执行追加的 SQL 才能正常工作。

返回

命令 ResultSetMapping 的

适用于