Execute an IDbCommand (that returns no resultset and takes no parameters) against the provided IDbTransaction. 
            
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
| C# | 
|---|
public virtual int ExecuteNonQuery( IDbTransaction transaction, CommandType commandType, string commandText )  | 
| Visual Basic | 
|---|
Public Overridable Function ExecuteNonQuery ( transaction As IDbTransaction, commandType As CommandType, commandText As String ) As Integer  | 
Parameters
- transaction
 - Type: System.Data..::..IDbTransaction
A valid IDbTransaction 
- commandType
 - Type: System.Data..::..CommandType
The CommandType (stored procedure, text, etc.) 
- commandText
 - Type: System..::..String
The stored procedure name or SQL command 
Return Value
Type: Int32An int representing the number of rows affected by the command
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentNullException | Thrown if commandText is null | 
| System..::..ArgumentNullException | Thrown if transaction is null | 
| System..::..ArgumentNullException | Thrown if transaction.Connection is null |