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