Execute an IDbCommand (that returns a resultset and takes no parameters) against the provided IDbTransaction.
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public virtual IDataReader ExecuteReader(
IDbTransaction transaction,
CommandType commandType,
string commandText
) |
Visual Basic |
---|
Public Overridable Function ExecuteReader (
transaction As IDbTransaction,
commandType As CommandType,
commandText As String
) As IDataReader |
Return Value
Type:
IDataReaderA IDataReader containing the resultset generated by the command
Examples
| Copy |
---|
IDataReader dr = helper.ExecuteReader(trans, CommandType.StoredProcedure, "GetOrders"); |
Exceptions
See Also