IUpdateSqlGenerator.AppendInsertOperation 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AppendInsertOperation(StringBuilder, IReadOnlyModificationCommand, Int32) |
追加一个 SQL 命令,用于在生成的命令中插入一行。 |
AppendInsertOperation(StringBuilder, ModificationCommand, Int32) |
追加一个 SQL 命令,用于在生成的命令中插入一行。 |
AppendInsertOperation(StringBuilder, IReadOnlyModificationCommand, Int32, Boolean) |
追加一个 SQL 命令,用于在生成的命令中插入一行。 |
AppendInsertOperation(StringBuilder, IReadOnlyModificationCommand, Int32)
追加一个 SQL 命令,用于在生成的命令中插入一行。
public Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendInsertOperation (System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand command, int commandPosition);
public virtual Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendInsertOperation (System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand command, int commandPosition);
abstract member AppendInsertOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
abstract member AppendInsertOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
override this.AppendInsertOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
Public Function AppendInsertOperation (commandStringBuilder As StringBuilder, command As IReadOnlyModificationCommand, commandPosition As Integer) As ResultSetMapping
Public Overridable Function AppendInsertOperation (commandStringBuilder As StringBuilder, command As IReadOnlyModificationCommand, commandPosition As Integer) As ResultSetMapping
参数
- commandStringBuilder
- StringBuilder
SQL 应追加到的生成器。
- command
- IReadOnlyModificationCommand
表示删除操作的命令。
- commandPosition
- Int32
批处理中此命令的序号。
返回
ResultSetMapping命令的 。
适用于
AppendInsertOperation(StringBuilder, ModificationCommand, Int32)
追加一个 SQL 命令,用于在生成的命令中插入一行。
public Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendInsertOperation (System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.ModificationCommand command, int commandPosition);
abstract member AppendInsertOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.ModificationCommand * int -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
Public Function AppendInsertOperation (commandStringBuilder As StringBuilder, command As ModificationCommand, commandPosition As Integer) As ResultSetMapping
参数
- commandStringBuilder
- StringBuilder
SQL 应追加到的生成器。
- command
- ModificationCommand
表示删除操作的命令。
- commandPosition
- Int32
批处理中此命令的序号。
返回
ResultSetMapping命令的 。
适用于
AppendInsertOperation(StringBuilder, IReadOnlyModificationCommand, Int32, Boolean)
追加一个 SQL 命令,用于在生成的命令中插入一行。
public Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendInsertOperation (System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand command, int commandPosition, out bool requiresTransaction);
abstract member AppendInsertOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
Public Function AppendInsertOperation (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命令的 。