This method assigns dataRow column values to an array of IDataParameters
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
protected void AssignParameterValues( IDataParameter[] commandParameters, DataRow dataRow ) |
Visual Basic |
---|
Protected Sub AssignParameterValues ( commandParameters As IDataParameter(), dataRow As DataRow ) |
Parameters
- commandParameters
- Type: array<System.Data..::..IDataParameter>[]()[][]
Array of IDataParameters to be assigned values
- dataRow
- Type: System.Data..::..DataRow
The dataRow used to hold the stored procedure's parameter values
Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | Thrown if any of the parameter names are invalid. |