Execute an IDbCommand (that returns a resultset) against the database specified in the connection String.

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
protected virtual IDataReader ExecuteReader(
	IDbCommand command,
	AdoHelper<(Of <(<'TFactory>)>)>..::..AdoConnectionOwnership connectionOwnership
)
Visual Basic
Protected Overridable Function ExecuteReader ( 
	command As IDbCommand,
	connectionOwnership As AdoHelper<(Of <(<'TFactory>)>)>..::..AdoConnectionOwnership
) As IDataReader

Parameters

command
Type: System.Data..::..IDbCommand
The IDbCommand object to use
connectionOwnership
Type: CodeSmith.Engine..::..AdoHelper<(Of <(<'TFactory>)>)>..::..AdoConnectionOwnership
Enum indicating whether the connection was created internally or externally.

Return Value

Type: IDataReader
A IDataReader containing the resultset generated by the command

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown if command is null.

See Also