AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyExceptionAsync Método

Definición

Produce una excepción que indica que el comando afectó a un número inesperado de filas.

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

Parámetros

reader
RelationalDataReader

Lector de datos.

commandIndex
Int32

Ordinal del comando.

expectedRowsAffected
Int32

Número esperado de filas afectadas.

rowsAffected
Int32

Número real de filas afectadas.

cancellationToken
CancellationToken

que CancellationToken se va a observar mientras espera a que se complete la tarea.

Devoluciones

Tarea que representa la operación asincrónica.

Excepciones

Se aplica a