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)

member ExecuteReader : 
        behavior:CommandBehavior -> EntityDataReader

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: