AffectedCountModificationCommandBatch.ConsumeResultSetWithoutPropagationAsync 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.
Overloads
ConsumeResultSetWithoutPropagationAsync(Int32, RelationalDataReader, CancellationToken) |
Consumes the data reader created by ExecuteAsync(IRelationalConnection, CancellationToken) without propagating values back into the ModificationCommand. |
ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken) |
ConsumeResultSetWithoutPropagationAsync(Int32, RelationalDataReader, CancellationToken)
Consumes the data reader created by ExecuteAsync(IRelationalConnection, CancellationToken) without propagating values back into the ModificationCommand.
protected virtual System.Threading.Tasks.Task<int> ConsumeResultSetWithoutPropagationAsync (int commandIndex, Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, System.Threading.CancellationToken cancellationToken);
abstract member ConsumeResultSetWithoutPropagationAsync : int * Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.ConsumeResultSetWithoutPropagationAsync : int * Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Protected Overridable Function ConsumeResultSetWithoutPropagationAsync (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
ConsumeResultSetWithoutPropagationAsync(Int32, DbDataReader, CancellationToken)
protected virtual System.Threading.Tasks.Task<int> ConsumeResultSetWithoutPropagationAsync (int commandIndex, System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken);
abstract member ConsumeResultSetWithoutPropagationAsync : int * System.Data.Common.DbDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
override this.ConsumeResultSetWithoutPropagationAsync : int * System.Data.Common.DbDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<int>
Protected Overridable Function ConsumeResultSetWithoutPropagationAsync (commandIndex As Integer, reader As DbDataReader, cancellationToken As CancellationToken) As Task(Of Integer)
Parameters
- commandIndex
- Int32
- reader
- DbDataReader
- cancellationToken
- CancellationToken
Returns
Applies to
Entity Framework