AffectedCountModificationCommandBatch.ConsumeAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ConsumeAsync(RelationalDataReader, CancellationToken) |
取用 所 ExecuteAsync(IRelationalConnection, CancellationToken) 建立的資料讀取器。 |
ConsumeAsync(DbDataReader, CancellationToken) |
ConsumeAsync(RelationalDataReader, CancellationToken)
取用 所 ExecuteAsync(IRelationalConnection, CancellationToken) 建立的資料讀取器。
protected override System.Threading.Tasks.Task ConsumeAsync (Microsoft.EntityFrameworkCore.Storage.RelationalDataReader reader, System.Threading.CancellationToken cancellationToken = default);
override this.ConsumeAsync : Microsoft.EntityFrameworkCore.Storage.RelationalDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function ConsumeAsync (reader As RelationalDataReader, Optional cancellationToken As CancellationToken = Nothing) As Task
參數
- reader
- RelationalDataReader
資料讀取器。
- cancellationToken
- CancellationToken
等候 CancellationToken 工作完成時要觀察的 。
傳回
代表非同步作業的工作。
例外狀況
適用於
ConsumeAsync(DbDataReader, CancellationToken)
protected override System.Threading.Tasks.Task ConsumeAsync (System.Data.Common.DbDataReader reader, System.Threading.CancellationToken cancellationToken = default);
override this.ConsumeAsync : System.Data.Common.DbDataReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function ConsumeAsync (reader As DbDataReader, Optional cancellationToken As CancellationToken = Nothing) As Task
參數
- reader
- DbDataReader
- cancellationToken
- CancellationToken