Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

EntityCommand.ExecuteReader Method

Definition

Namespace:
System.Data.EntityClient
Assembly:
System.Data.Entity.dll

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.

Executes the command and returns a data reader.

Overloads

Name Description
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:
 System::Data::EntityClient::EntityDataReader ^ ExecuteReader();
public System.Data.EntityClient.EntityDataReader ExecuteReader();
override this.ExecuteReader : unit -> System.Data.EntityClient.EntityDataReader
Public 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:
 System::Data::EntityClient::EntityDataReader ^ ExecuteReader(System::Data::CommandBehavior behavior);
public System.Data.EntityClient.EntityDataReader ExecuteReader(System.Data.CommandBehavior behavior);
override this.ExecuteReader : System.Data.CommandBehavior -> System.Data.EntityClient.EntityDataReader
Public Function ExecuteReader (behavior As CommandBehavior) As EntityDataReader

Parameters

behavior
CommandBehavior

One of the CommandBehavior values.

Returns

The EntityDataReader that contains the results.

Applies to


Feedback

Was this page helpful?