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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for