Udostępnij przez


EntityCommand.ExecuteDbDataReaderAsync Metoda

Definicja

Asynchronicznie wykonuje polecenie i zwraca czytnik danych do odczytywania wyników

[System.Diagnostics.DebuggerStepThrough]
protected override System.Threading.Tasks.Task<System.Data.Common.DbDataReader> ExecuteDbDataReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken);
override this.ExecuteDbDataReaderAsync : System.Data.CommandBehavior * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Data.Common.DbDataReader>

Parametry

behavior
CommandBehavior

Zachowanie do użycia podczas wykonywania polecenia

cancellationToken
CancellationToken

Token do monitorowania żądań anulowania

Zwraca

Zadanie reprezentujące operację asynchroniczną. Wynik zadania zawiera obiekt DbDataReader.

Atrybuty

Dotyczy