語言

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

在同一存檔操作中,是否預期會有更多指令集。

傳回

要執行的批次清單。

適用於