Редагувати

Поділитися через


EntityCommand.ExecuteReader Method

Definition

Executes the command and returns a data reader.

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:
 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