Execute an IDbCommand (that returns no resultset) against the database

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public virtual int ExecuteNonQuery(
	IDbCommand command
)
Visual Basic
Public Overridable Function ExecuteNonQuery ( 
	command As IDbCommand
) As Integer

Parameters

command
Type: System.Data..::..IDbCommand
The IDbCommand to execute

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