DbCommand.ExecuteReader Method

Definition

Executes the CommandText against the Connection and returns a DbDataReader.

Overloads

ExecuteReader()

Executes the CommandText against the Connection, and returns an DbDataReader.

ExecuteReader(CommandBehavior)

Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

ExecuteReader()

Executes the CommandText against the Connection, and returns an DbDataReader.

public System.Data.Common.DbDataReader ExecuteReader ();
Returns

ExecuteReader(CommandBehavior)

Executes the CommandText against the Connection, and returns an DbDataReader using one of the CommandBehavior values.

public System.Data.Common.DbDataReader ExecuteReader (System.Data.CommandBehavior behavior);
Parameters
behavior
CommandBehavior

One of the CommandBehavior values.

Returns

Applies to