ReaderModificationCommandBatch.ConsumeAsync 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.
ConsumeAsync(RelationalDataReader, CancellationToken) |
Consumes the data reader created by ExecuteAsync(IRelationalConnection, CancellationToken). |
ConsumeAsync(DbDataReader, CancellationToken) |
Consumes the data reader created by ExecuteAsync(IRelationalConnection, CancellationToken).
protected abstract System.Threading.Tasks.Task ConsumeAsync (Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, System.Threading.CancellationToken cancellationToken = default);
abstract member ConsumeAsync : Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected MustOverride Function ConsumeAsync (reader As RelationalDataReader, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- 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.
Exceptions
If the CancellationToken is canceled.
Applies to
Entity Framework Core 9.0 والإصدارات الأخرى
منتج | الإصدارات |
---|---|
Entity Framework Core | 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |
protected abstract System.Threading.Tasks.Task ConsumeAsync (System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken = default);
abstract member ConsumeAsync : System.Data.Common.DbDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected MustOverride Function ConsumeAsync (reader As DbDataReader, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- reader
- DbDataReader
- cancellationToken
- CancellationToken
Returns
Applies to
Entity Framework Core 1.1 وEntity Framework Core 1.0
منتج | الإصدارات |
---|---|
Entity Framework Core | 1.0, 1.1 |
ملاحظات Entity Framework
Entity Framework هو مشروع مصدر مفتوح. حدد رابطًا لتقديم الملاحظات: