IRelationalCommand.ExecuteReader 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
ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>) |
Executes the command with a RelationalDataReader result. |
ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean) |
Obsolete.
Executes the command with a RelationalDataReader result. |
ExecuteReader(RelationalCommandParameterObject) |
Executes the command with a RelationalDataReader result. |
ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>)
Executes the command with a RelationalDataReader result.
public Microsoft.EntityFrameworkCore.Storage.RelationalDataReader ExecuteReader (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues);
abstract member ExecuteReader : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> -> Microsoft.EntityFrameworkCore.Storage.RelationalDataReader
Public Function ExecuteReader (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object)) As RelationalDataReader
Parameters
- connection
- IRelationalConnection
The connection to execute against.
- parameterValues
- IReadOnlyDictionary<String,Object>
The values for the parameters.
Returns
The result of the command.
Applies to
ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
Caution
Use overload without 'manageConnection' parameter
Executes the command with a RelationalDataReader result.
public Microsoft.EntityFrameworkCore.Storage.RelationalDataReader ExecuteReader (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues = default, bool manageConnection = true);
[System.Obsolete("Use overload without 'manageConnection' parameter")]
public Microsoft.EntityFrameworkCore.Storage.RelationalDataReader ExecuteReader (Microsoft.EntityFrameworkCore.Storage.IRelationalConnection connection, System.Collections.Generic.IReadOnlyDictionary<string,object> parameterValues, bool manageConnection);
abstract member ExecuteReader : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalDataReader
[<System.Obsolete("Use overload without 'manageConnection' parameter")>]
abstract member ExecuteReader : Microsoft.EntityFrameworkCore.Storage.IRelationalConnection * System.Collections.Generic.IReadOnlyDictionary<string, obj> * bool -> Microsoft.EntityFrameworkCore.Storage.RelationalDataReader
Public Function ExecuteReader (connection As IRelationalConnection, Optional parameterValues As IReadOnlyDictionary(Of String, Object) = Nothing, Optional manageConnection As Boolean = true) As RelationalDataReader
Public Function ExecuteReader (connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object), manageConnection As Boolean) As RelationalDataReader
Parameters
- connection
- IRelationalConnection
The connection to execute against.
- parameterValues
- IReadOnlyDictionary<String,Object>
The values for the parameters.
- manageConnection
- Boolean
A value indicating whether to open and close the connection as needed.
Returns
The result of the command.
- Attributes
Applies to
ExecuteReader(RelationalCommandParameterObject)
Executes the command with a RelationalDataReader result.
public Microsoft.EntityFrameworkCore.Storage.RelationalDataReader ExecuteReader (Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject parameterObject);
abstract member ExecuteReader : Microsoft.EntityFrameworkCore.Storage.RelationalCommandParameterObject -> Microsoft.EntityFrameworkCore.Storage.RelationalDataReader
Public Function ExecuteReader (parameterObject As RelationalCommandParameterObject) As RelationalDataReader
Parameters
- parameterObject
- RelationalCommandParameterObject
Parameters for this method.
Returns
The result of the command.
Applies to
Entity Framework