UpdateSqlGenerator.AppendDeleteReturningOperation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过包含用于并发检查的 RETURNING 子句的 DELETE,将用于删除行的 SQL 追加到正在生成的命令中。
protected virtual Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendDeleteReturningOperation (System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand command, int commandPosition, out bool requiresTransaction);
abstract member AppendDeleteReturningOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
override this.AppendDeleteReturningOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
Protected Overridable Function AppendDeleteReturningOperation (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命令的 。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈