語言

ModificationCommandBatch 類別

定義

一個可用於批次執行的 s 集合 ModificationCommand的基底類別。

此類型通常由資料庫提供者使用;通常不在應用程式碼中使用。

public abstract class ModificationCommandBatch
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class ModificationCommandBatch
type ModificationCommandBatch = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type ModificationCommandBatch = class
Public MustInherit Class ModificationCommandBatch
繼承
ModificationCommandBatch
衍生
屬性

備註

更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。

建構函式

名稱 Description
ModificationCommandBatch()

一個可用於批次執行的 s 集合 ModificationCommand的基底類別。

此類型通常由資料庫提供者使用;通常不在應用程式碼中使用。

屬性

名稱 Description
AreMoreBatchesExpected

表示這批次之後是否還會有更多。

ModificationCommands

批次中概念性插入/更新/刪除 ModificationCommands的清單。

RequiresTransaction

表示批次是否需要交易才能正確執行。

方法

名稱 Description
AddCommand(IReadOnlyModificationCommand)

將插入/更新/刪除 ModificationCommands 的輸入資料加入批次。

AddCommand(ModificationCommand)

將插入/更新/刪除 ModificationCommands 的輸入資料加入批次。

Complete(Boolean)

表示此批次不會新增更多指令,並準備執行。

Execute(IRelationalConnection)

向資料庫發送插入/更新/刪除指令。

ExecuteAsync(IRelationalConnection, CancellationToken)

向資料庫發送插入/更新/刪除指令。

TryAddCommand(IReadOnlyModificationCommand)

嘗試將給定的插入/更新/刪除 modificationCommand 加入批次。

適用於