ICommandBatchPreparer.CreateCommandBatches Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework