Share via


ICommandBatchPreparer.CreateCommandBatches Method

Definition

Given a set of modification commands, returns one more ready-to-execute batches for those commands, taking into account e.g. maximum batch sizes and other batching constraints.

public System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Update.ModificationCommandBatch> CreateCommandBatches (System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand> commandSet, bool moreCommandSets);
abstract member CreateCommandBatches : seq<Microsoft.EntityFrameworkCore.Update.IReadOnlyModificationCommand> * bool -> seq<Microsoft.EntityFrameworkCore.Update.ModificationCommandBatch>
Public Function CreateCommandBatches (commandSet As IEnumerable(Of IReadOnlyModificationCommand), moreCommandSets As Boolean) As IEnumerable(Of ModificationCommandBatch)

Parameters

commandSet
IEnumerable<IReadOnlyModificationCommand>

The set of commands to be organized in batches.

moreCommandSets
Boolean

Whether more command sets are expected after this one within the same save operation.

Returns

The list of batches to execute.

Applies to