Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

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

public:
EntityDataReader^ ExecuteReader(
	CommandBehavior behavior
)

Parameters

behavior
Type: System.Data::CommandBehavior

One of the CommandBehavior values.

Return Value

Type: System.Data.EntityClient::EntityDataReader^

The EntityDataReader that contains the results.

.NET Framework
Available since 3.5
Return to top
Show:
© 2017 Microsoft