Execute an IDbCommand (that returns a resultset) against the database specified in
the connection String.
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public virtual IDataReader ExecuteReader( IDbCommand command ) |
Visual Basic |
---|
Public Overridable Function ExecuteReader ( command As IDbCommand ) As IDataReader |
Parameters
- command
- Type: System.Data..::..IDbCommand
The IDbCommand object to use
Return Value
Type: IDataReaderA IDataReader containing the resultset generated by the command
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | Thrown if command is null. |