AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyExceptionAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Throws an exception indicating the command affected an unexpected number of rows.
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
Parameters
- reader
- RelationalDataReader
The data reader.
- commandIndex
- Int32
The ordinal of the command.
- expectedRowsAffected
- Int32
The expected number of rows affected.
- rowsAffected
- Int32
The actual number of rows affected.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous operation.
Exceptions
If the CancellationToken is canceled.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework