Execute a stored procedure via an IDbCommand (that returns a resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will query the database to discover the parameters for the stored procedure (the first time each stored procedure is called), and assign the values based on row values.

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

Syntax

C#
public virtual DataSet ExecuteDatasetTypedParams(
	string connectionString,
	string spName,
	DataRow dataRow
)
Visual Basic
Public Overridable Function ExecuteDatasetTypedParams ( 
	connectionString As String,
	spName As String,
	dataRow As DataRow
) As DataSet

Parameters

connectionString
Type: System..::..String
A valid connection string for an IDbConnection
spName
Type: System..::..String
The name of the stored procedure
dataRow
Type: System.Data..::..DataRow
The dataRow used to hold the stored procedure's parameter values.

Return Value

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

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown if connectionString is null
System..::..ArgumentNullExceptionThrown if spName is null

See Also