Share via


ReaderModificationCommandBatch.AddCommand Method

Definition

Overloads

AddCommand(IReadOnlyModificationCommand)

Adds Updates the command text for the command at the given position in the ModificationCommands list.

AddCommand(ModificationCommand)

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

AddCommand(IReadOnlyModificationCommand)

Adds Updates the command text for the command at the given position in the ModificationCommands list.

public override bool AddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
protected virtual void AddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> bool
abstract member AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> unit
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> unit
Public Overrides Function AddCommand (modificationCommand As IReadOnlyModificationCommand) As Boolean
Protected Overridable Sub AddCommand (modificationCommand As IReadOnlyModificationCommand)

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 override bool AddCommand (Microsoft.EntityFrameworkCore.Update.ModificationCommand modificationCommand);
override this.AddCommand : Microsoft.EntityFrameworkCore.Update.ModificationCommand -> bool
Public Overrides 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