ICommandBatchPreparer.CreateCommandBatches Metode

Definisi

Mengingat serangkaian perintah modifikasi, mengembalikan satu batch yang siap dijalankan lagi untuk perintah tersebut, dengan mempertimbangkan misalnya ukuran batch maksimum dan batasan batch lainnya.

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)

Parameter

commandSet
IEnumerable<IReadOnlyModificationCommand>

Kumpulan perintah yang akan diatur dalam batch.

moreCommandSets
Boolean

Apakah lebih banyak set perintah diharapkan setelah yang satu ini dalam operasi penyimpanan yang sama.

Mengembalikan

Daftar batch yang akan dieksekusi.

Berlaku untuk