Share via


ModificationCommandBatch.AddCommand Method

Definition

Overloads

AddCommand(IReadOnlyModificationCommand)

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

AddCommand(ModificationCommand)

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

AddCommand(IReadOnlyModificationCommand)

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

public abstract bool AddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
abstract member AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> bool
Public MustOverride Function AddCommand (modificationCommand As IReadOnlyModificationCommand) As Boolean

Parameters

modificationCommand
IReadOnlyModificationCommand

The command to add.

Returns

true if the command was successfully added; false if there was no room in the current batch to add the command and it must instead be added to a new batch.

Applies to

AddCommand(ModificationCommand)

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

public abstract bool AddCommand (Microsoft.EntityFrameworkCore.Update.ModificationCommand modificationCommand);
abstract member AddCommand : Microsoft.EntityFrameworkCore.Update.ModificationCommand -> bool
Public MustOverride Function AddCommand (modificationCommand As ModificationCommand) As Boolean

Parameters

modificationCommand
ModificationCommand

The command to add.

Returns

true if the command was successfully added; false if there was no room in the current batch to add the command and it must instead be added to a new batch.

Applies to