EntityCommand.ExecuteReader Method

 

Executes the command and returns a data reader for reading the results.

Namespace:   System.Data.Entity.Core.EntityClient
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodExecuteReader()

Executes the command and returns a data reader.

System_CAPS_pubmethodExecuteReader(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 .


EntityCommand.ExecuteReader Method ()

Executes the command and returns a data reader.

public virtual EntityDataReader ExecuteReader()

Return Value

Type: System.Data.Entity.Core.EntityClient.EntityDataReader

The EntityDataReader that contains the results.


EntityCommand.ExecuteReader Method (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 EntityDataReader ExecuteReader(
	CommandBehavior behavior
)

Parameters

behavior
Type: System.Data.CommandBehavior

One of the CommandBehavior values.

Return Value

Type: System.Data.Entity.Core.EntityClient.EntityDataReader

The EntityDataReader that contains the results.