ICommandBatchPreparer.CreateCommandBatches 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
给定一组修改命令后,考虑到最大批大小和其他批处理约束,为这些命令返回一个可执行准备的批处理。
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
在同一保存操作中,是否应有更多命令集。
返回
要执行的批处理列表。