UpdateAndSelectSqlGenerator.AppendDeleteAndSelectOperation 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
透過 DELETE 後接 SELECT 來進行並行檢查,為正在建立的指令新增 SQL 以更新資料列。
protected virtual Microsoft.EntityFrameworkCore.Update.ResultSetMapping AppendDeleteAndSelectOperation(System.Text.StringBuilder commandStringBuilder, Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand command, int commandPosition, out bool requiresTransaction);
abstract member AppendDeleteAndSelectOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
override this.AppendDeleteAndSelectOperation : System.Text.StringBuilder * Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand * int * bool -> Microsoft.EntityFrameworkCore.Update.ResultSetMapping
Protected Overridable Function AppendDeleteAndSelectOperation (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 為了指揮。