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 任务完成时要观察的 。

返回

表示异步操作的任务。

例外

适用于