DB2®CommandBuilder.ApplyParameterInfo Method
Overloaded. Assigns a value to the DbParameter.DbType property using the data type from the DataRow. Used internally by DbCommandBuilder.
- Namespace:
IBM.Data.DB2
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Shared Sub ApplyParameterInfo( _
ByVal p As DbParameter, _
ByVal row As DataRow, _
ByVal st As StatementType, _
ByVal whereClause As Boolean _
)
[C#]
public static void ApplyParameterInfo(
DbParameter p,
DataRow row,
StatementType st,
boolwhereClause
);
[C++]
public: static void ApplyParameterInfo(
DbParameter p,
DataRow row,
StatementType st,
boolwhereClause);
[JScript]
public static function ApplyParameterInfo(
p : DbParameter, _
row : DataRow, _
st : StatementType, _
whereClause : Boolean
);
Parameters
- p
- A DbParameter to which the data type change is applied.
- row
- The DataRow from the schema table provided by GetSchemaTable.
- st
- The type of command being generated: INSERT, UPDATE or DELETE.
- whereClause
true
if the parameter is part of the update or delete WHERE clause.false
if it is part of the insert or update values.