ModificationCommandBatch Class

Definition

A base class for a collection of ModificationCommands that can be executed as a batch.

This type is typically used by database providers; it is generally not used in application code.

public abstract class ModificationCommandBatch
type ModificationCommandBatch = class
Public MustInherit Class ModificationCommandBatch
Inheritance
ModificationCommandBatch
Derived

Remarks

See Implementation of database providers and extensions for more information and examples.

Constructors

ModificationCommandBatch()

Properties

AreMoreBatchesExpected

Indicates whether more batches are expected after this one.

ModificationCommands

The list of conceptual insert/update/delete ModificationCommandss in the batch.

RequiresTransaction

Indicates whether the batch requires a transaction in order to execute correctly.

Methods

AddCommand(IReadOnlyModificationCommand)

Adds the given insert/update/delete ModificationCommands to the batch.

AddCommand(ModificationCommand)

Adds the given insert/update/delete ModificationCommands to the batch.

Complete(Boolean)

Indicates that no more commands will be added to this batch, and prepares it for execution.

Execute(IRelationalConnection)

Sends insert/update/delete commands to the database.

ExecuteAsync(IRelationalConnection, CancellationToken)

Sends insert/update/delete commands to the database.

TryAddCommand(IReadOnlyModificationCommand)

Attempts to adds the given insert/update/delete modificationCommand to the batch.

Applies to