Language

AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyExceptionAsync メソッド

定義

コマンドが予期しない行数に影響したことを示す例外をスローします。

protected virtual System.Threading.Tasks.Task ThrowAggregateUpdateConcurrencyExceptionAsync(Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, int commandIndex, int expectedRowsAffected, int rowsAffected, System.Threading.CancellationToken cancellationToken);
abstract member ThrowAggregateUpdateConcurrencyExceptionAsync : Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * int * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ThrowAggregateUpdateConcurrencyExceptionAsync : Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * int * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function ThrowAggregateUpdateConcurrencyExceptionAsync (reader As RelationalDataReader, commandIndex As Integer, expectedRowsAffected As Integer, rowsAffected As Integer, cancellationToken As CancellationToken) As Task

パラメーター

reader
RelationalDataReader

データ リーダー。

commandIndex
Int32

コマンドの序数。

expectedRowsAffected
Int32

影響を受ける予想される行数。

rowsAffected
Int32

影響を受ける行の実際の数。

cancellationToken
CancellationToken

タスクの完了を待機している間に観察する CancellationToken 。

戻り値

非同期操作を表すタスク。

例外

CancellationTokenが取り消された場合。

適用対象