AffectedCountModificationCommandBatch.ConsumeResultSetWithRowsAffectedOnlyAsync 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.
Consumes the data reader created by ExecuteAsync(IRelationalConnection, CancellationToken) without propagating values back into the ModificationCommand.
protected virtual System.Threading.Tasks.Task<int> ConsumeResultSetWithRowsAffectedOnlyAsync (int commandIndex, Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, System.Threading.CancellationToken cancellationToken);
abstract member ConsumeResultSetWithRowsAffectedOnlyAsync : int * Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.ConsumeResultSetWithRowsAffectedOnlyAsync : int * Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Protected Overridable Function ConsumeResultSetWithRowsAffectedOnlyAsync (commandIndex As Integer, reader As RelationalDataReader, cancellationToken As CancellationToken) As Task(Of Integer)
Parameters
- commandIndex
- Int32
The ordinal of the command being consumed.
- reader
- RelationalDataReader
The data reader.
- cancellationToken
- CancellationToken
A CancellationToken to observe while waiting for the task to complete.
Returns
A task that represents the asynchronous operation. The task contains the ordinal of the next command that must be consumed.
Exceptions
If the CancellationToken is canceled.
Applies to
Entity Framework