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( string connectionString, string spName ) |
Visual Basic |
---|
Public Overridable Function GetSpParameterSet ( connectionString As String, spName As String ) As IDataParameter() |
Parameters
- connectionString
- Type: System..::..String
A valid connection string for an IDbConnection
- spName
- Type: System..::..String
The name of the stored procedure
Return Value
Type: array<IDataParameter>[]()[][]An array of IDataParameterParameters
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 connectionString is null |
System..::..ArgumentNullException | Thrown if spName is null |