EntityCommand.ExecuteReader Method (CommandBehavior)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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


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