共用方式為


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等候工作完成時要觀察的 。

傳回

代表非同步作業的工作。

例外狀況

適用於