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