IRelationalCommand.ExecuteReader 方法

定义

重载

ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>)

使用 RelationalDataReader 结果执行命令。

ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)
已过时.

使用 RelationalDataReader 结果执行命令。

ExecuteReader(RelationalCommandParameterObject)

使用 RelationalDataReader 结果执行命令。

ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>)

使用 RelationalDataReader 结果执行命令。

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

参数

connection
IRelationalConnection

要对其执行的连接。

parameterValues
IReadOnlyDictionary<String,Object>

参数的值。

返回

命令的结果。

适用于

ExecuteReader(IRelationalConnection, IReadOnlyDictionary<String,Object>, Boolean)

注意

Use overload without 'manageConnection' parameter

使用 RelationalDataReader 结果执行命令。

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

参数

connection
IRelationalConnection

要对其执行的连接。

parameterValues
IReadOnlyDictionary<String,Object>

参数的值。

manageConnection
Boolean

一个 值,该值指示是否根据需要打开和关闭连接。

返回

命令的结果。

属性

适用于

ExecuteReader(RelationalCommandParameterObject)

Source:
IRelationalCommand.cs
Source:
IRelationalCommand.cs
Source:
IRelationalCommand.cs
Source:
IRelationalCommand.cs

使用 RelationalDataReader 结果执行命令。

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

参数

parameterObject
RelationalCommandParameterObject

此方法的参数。

返回

命令的结果。

适用于