EntityCommand.ExecuteReader Method
Executes the command and returns a data reader for reading the results.
Assembly: EntityFramework (in EntityFramework.dll)
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 . |
EntityCommand.ExecuteReader Method ()
Executes the command and returns a data reader.
Return Value
Type: System.Data.Entity.Core.EntityClient.EntityDataReaderThe EntityDataReader that contains the results.
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 .
Parameters
- behavior
-
Type:
System.Data.CommandBehavior
One of the CommandBehavior values.
Return Value
Type: System.Data.Entity.Core.EntityClient.EntityDataReaderThe EntityDataReader that contains the results.