AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyExceptionAsync Method
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
- 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.
A task that represents the asynchronous operation.
If the CancellationToken is canceled.
Produkt | Versioner |
---|---|
Entity Framework Core | 7.0, 8.0, 9.0 |
Feedback om Entity Framework
Entity Framework är ett öppen källkod projekt. Välj en länk för att ge feedback: