Share via


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
[System.Runtime.CompilerServices.Nullable(0)]
public abstract class ModificationCommandBatch
type ModificationCommandBatch = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type ModificationCommandBatch = class
Public MustInherit Class ModificationCommandBatch
Inheritance
ModificationCommandBatch
Derived
Attributes

Remarks

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

Constructors

Name Description
ModificationCommandBatch()

Properties

Name Description
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

Name Description
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