ReaderModificationCommandBatch.TryAddCommand Method

Definition

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

public override bool TryAddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);
override this.TryAddCommand : Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand -> bool
Public Overrides Function TryAddCommand (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