Execute a stored procedure via an IDbCommand (that returns no resultset) against the database specified in the connection string using the dataRow column values as the stored procedure's parameters values. This method will assign the parameter 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 int ExecuteNonQueryTypedParams(
	IDbCommand command,
	DataRow dataRow
)
Visual Basic
Public Overridable Function ExecuteNonQueryTypedParams ( 
	command As IDbCommand,
	dataRow As DataRow
) As Integer

Parameters

command
Type: System.Data..::..IDbCommand
The IDbCommand to execute
dataRow
Type: System.Data..::..DataRow
The dataRow used to hold the stored procedure's parameter values.

Return Value

Type: Int32
An int representing the number of rows affected by the command

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown if command is null.

See Also