语言

ICommandBatchPreparer.CreateCommandBatches 方法

定义

给定一组修改命令后,考虑到最大批大小和其他批处理约束,为这些命令返回一个可执行准备的批处理。

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)

参数

commandSet
IEnumerable<IReadOnlyModificationCommand>

要分批组织的命令集。

moreCommandSets
Boolean

在同一保存操作中,是否应有更多命令集。

返回

要执行的批处理列表。

适用于