EntityCommand.ExecuteReader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 virtual System.Data.Entity.Core.EntityClient.EntityDataReader ExecuteReader ();
override this.ExecuteReader : unit -> System.Data.Entity.Core.EntityClient.EntityDataReader
Public Overridable 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 virtual System.Data.Entity.Core.EntityClient.EntityDataReader ExecuteReader (System.Data.CommandBehavior behavior);
override this.ExecuteReader : System.Data.CommandBehavior -> System.Data.Entity.Core.EntityClient.EntityDataReader
Public Overridable Function ExecuteReader (behavior As CommandBehavior) As EntityDataReader
Parameters
- behavior
- CommandBehavior
One of the CommandBehavior values.
Returns
The EntityDataReader that contains the results.
Applies to
Entity Framework