Aracılığıyla paylaş


IBatchExecutor.ExecuteAsync Yöntem

Tanım

Verilen veritabanı bağlantısına karşı toplu işlerdeki komutları yürütür.

public System.Threading.Tasks.Task<int> ExecuteAsync(System.Collections.Generic.IEnumerable<Microsoft.EntityFrameworkCore.Update.ModificationCommandBatch> commandBatches, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteAsync : seq<Microsoft.EntityFrameworkCore.Update.ModificationCommandBatch> * Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Public Function ExecuteAsync (commandBatches As IEnumerable(Of ModificationCommandBatch), connection As IRelationalConnection, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

Parametreler

commandBatches
IEnumerable<ModificationCommandBatch>

Yürütülecek toplu işlemler.

connection
IRelationalConnection

Kullanılacak veritabanı bağlantısı.

cancellationToken
CancellationToken

CancellationToken Görevin tamamlanmasını beklerken gözlemlemek için bir.

Döndürülenler

Zaman uyumsuz kaydetme işlemini temsil eden görev. Görev sonucu, etkilenen toplam satır sayısını içerir.

Özel durumlar

Şunlara uygulanır