UpdateAndSelectSqlGenerator.AppendInsertAndSelectOperations 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过 INSERT 和可选的 SELECT 追加 SQL 以将行插入要生成的命令,以检索数据库生成的任何值。
protected virtual Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendInsertAndSelectOperations(System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand command, int commandPosition, out bool requiresTransaction);
abstract member AppendInsertAndSelectOperations : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
override this.AppendInsertAndSelectOperations : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
Protected Overridable Function AppendInsertAndSelectOperations (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命令的 。