IRelationalCommand.ExecuteReaderAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
ExecuteReaderAsync(RelationalCommandParameterObject, CancellationToken) |
Executa de forma assíncrona o comando com um RelationalDataReader resultado. |
ExecuteReaderAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, CancellationToken) |
Executa de forma assíncrona o comando com um RelationalDataReader resultado. |
ExecuteReaderAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean, CancellationToken) |
Obsoleto.
Executa de forma assíncrona o comando com um RelationalDataReader resultado. |
ExecuteReaderAsync(RelationalCommandParameterObject, CancellationToken)
- Origem:
- IRelationalCommand.cs
- Origem:
- IRelationalCommand.cs
- Origem:
- IRelationalCommand.cs
- Origem:
- IRelationalCommand.cs
Executa de forma assíncrona o comando com um RelationalDataReader resultado.
public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.RelationalDataReader> ExecuteReaderAsync (Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject parameterObject, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteReaderAsync : Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.RelationalDataReader>
Public Function ExecuteReaderAsync (parameterObject As RelationalCommandParameterObject, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RelationalDataReader)
Parâmetros
- parameterObject
- RelationalCommandParameterObject
Parâmetros para esse método.
- cancellationToken
- CancellationToken
Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.
Retornos
Uma tarefa que representa a operação assíncrona. O resultado da tarefa contém o resultado do comando .
Exceções
Se o padrão CancellationToken for cancelado.
Aplica-se a
ExecuteReaderAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, CancellationToken)
Executa de forma assíncrona o comando com um RelationalDataReader resultado.
public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.RelationalDataReader> ExecuteReaderAsync (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteReaderAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.RelationalDataReader>
Public Function ExecuteReaderAsync (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), Optional cancellationToken As CancellationToken = Nothing) As Task(Of RelationalDataReader)
Parâmetros
- connection
- IRelationalConnection
A conexão com a qual executar.
- parameterValues
- IReadOnlyDictionary<String,Object>
Os valores dos parâmetros.
- cancellationToken
- CancellationToken
Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.
Retornos
Uma tarefa que representa a operação assíncrona. O resultado da tarefa contém o resultado do comando .
Aplica-se a
ExecuteReaderAsync(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean, CancellationToken)
Cuidado
Use overload without 'manageConnection' parameter
Executa de forma assíncrona o comando com um RelationalDataReader resultado.
public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.RelationalDataReader> ExecuteReaderAsync (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues = default, bool manageConnection = true, System.Threading.CancellationToken cancellationToken = default);
[System.Obsolete("Use overload without 'manageConnection' parameter")]
public System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.RelationalDataReader> ExecuteReaderAsync (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, bool manageConnection, System.Threading.CancellationToken cancellationToken = default);
abstract member ExecuteReaderAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.RelationalDataReader>
[<System.Obsolete("Use overload without 'manageConnection' parameter")>]
abstract member ExecuteReaderAsync : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.EntityFrameworkCore.Storage.RelationalDataReader>
Public Function ExecuteReaderAsync (connection As IRelationalConnection, Optional parameterValues As IReadOnlyDictionary(Of String, Object) = Nothing, Optional manageConnection As Boolean = true, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RelationalDataReader)
Public Function ExecuteReaderAsync (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), manageConnection As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task(Of RelationalDataReader)
Parâmetros
- connection
- IRelationalConnection
A conexão com a qual executar.
- parameterValues
- IReadOnlyDictionary<String,Object>
Os valores dos parâmetros.
- manageConnection
- Boolean
Um valor que indica se a conexão deve ser aberta e fechada conforme necessário.
- cancellationToken
- CancellationToken
Um CancellationToken a ser observado enquanto aguarda a conclusão da tarefa.
Retornos
Uma tarefa que representa a operação assíncrona. O resultado da tarefa contém o resultado do comando .
- Atributos
Aplica-se a
Entity Framework