Retrieves the set of IDataParameters appropriate for the stored procedure
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public virtual IDataParameter[] GetSpParameterSet( IDbConnection connection, string spName, bool includeReturnValueParameter ) |
Visual Basic |
---|
Public Overridable Function GetSpParameterSet ( connection As IDbConnection, spName As String, includeReturnValueParameter As Boolean ) As IDataParameter() |
Parameters
- connection
- Type: System.Data..::..IDbConnection
A valid IDbConnection object
- spName
- Type: System..::..String
The name of the stored procedure
- includeReturnValueParameter
- Type: System..::..Boolean
A bool value indicating whether the return value parameter should be included in the results
Return Value
Type: array<IDataParameter>[]()[][]An array of IDataParameters
Remarks
This method will query the database for this information, and then store it in a cache for future requests.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | Thrown if spName is null |
System..::..ArgumentNullException | Thrown if connection is null |