ModificationCommandBatch Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
Applies to
Entity Framework