Share via


EntityCommand.ExecuteReader Method

Definition

Overloads

ExecuteReader()

Executes the command and returns a data reader.

ExecuteReader(CommandBehavior)

Compiles the CommandText into a command tree and passes it to the underlying store provider for execution, then builds an EntityDataReader out of the produced result set using the specified CommandBehavior .

ExecuteReader()

Executes the command and returns a data reader.

public virtual System.Data.Entity.Core.EntityClient.EntityDataReader ExecuteReader ();
override this.ExecuteReader : unit -> System.Data.Entity.Core.EntityClient.EntityDataReader
Public Overridable Function ExecuteReader () As EntityDataReader

Returns

The EntityDataReader that contains the results.

Applies to

ExecuteReader(CommandBehavior)

Compiles the CommandText into a command tree and passes it to the underlying store provider for execution, then builds an EntityDataReader out of the produced result set using the specified CommandBehavior .

public virtual System.Data.Entity.Core.EntityClient.EntityDataReader ExecuteReader (System.Data.CommandBehavior behavior);
override this.ExecuteReader : System.Data.CommandBehavior -> System.Data.Entity.Core.EntityClient.EntityDataReader
Public Overridable Function ExecuteReader (behavior As CommandBehavior) As EntityDataReader

Parameters

behavior
CommandBehavior

One of the CommandBehavior values.

Returns

The EntityDataReader that contains the results.

Applies to