ReaderModificationCommandBatch.AddCommand 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| AddCommand(IReadOnlyModificationCommand) |
新增 更新該指令在列表中指定位置 ModificationCommands 的指令文字。 |
| AddCommand(ModificationCommand) |
將插入/更新/刪除 ModificationCommands 的輸入資料加入批次。 |
AddCommand(IReadOnlyModificationCommand)
新增 更新該指令在列表中指定位置 ModificationCommands 的指令文字。
protected virtual void AddCommand(Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
public override bool AddCommand(Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
abstract member AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> unit
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> unit
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> bool
Protected Overridable Sub AddCommand (modificationCommand As IReadOnlyModificationCommand)
Public Overrides Function AddCommand (modificationCommand As IReadOnlyModificationCommand) As Boolean
參數
- modificationCommand
- IReadOnlyModificationCommand
要加的指令。
傳回
true 若指令成功加入; false 如果目前批次沒有空間新增該指令,必須將其加入新批次。
適用於
AddCommand(ModificationCommand)
將插入/更新/刪除 ModificationCommands 的輸入資料加入批次。
public override bool AddCommand(Microsoft.EntityFrameworkCore.Update.ModificationCommand modificationCommand);
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.ModificationCommand -> bool
Public Overrides Function AddCommand (modificationCommand As ModificationCommand) As Boolean
參數
- modificationCommand
- ModificationCommand
要加的指令。
傳回
true 若指令成功加入; false 如果目前批次沒有空間新增該指令,必須將其加入新批次。