ReaderModificationCommandBatch.TryAddCommand Method

Definition

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

C#
public override bool TryAddCommand (Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand modificationCommand);

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

منتج الإصدارات
Entity Framework Core 7.0, 8.0, 9.0