Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoTemplate.ExecuteNonQuery(CommandType, String, String, Enum, Int32, Object) Method

Executes a non query returning the number of rows affected.

[Visual Basic]
Public NotOverridable Overloads Sub ExecuteNonQuery( _
   ByVal cmdType As CommandType, _
   ByVal cmdText As String, _
   ByVal parameterName As String, _
   ByVal dbType As Enum, _
   ByVal size As Integer, _
   ByVal parameterValue As Object _
) _
    Implements ICommonAdoOperations.ExecuteNonQuery
[C#]
public int ExecuteNonQuery(
   CommandType cmdType,
   string cmdText,
   string parameterName,
   Enum dbType,
   int size,
   object parameterValue
);

Parameters

cmdType
The command type.
cmdText
The command text to execute.
parameterName
The name of the parameter to map.
dbType
One of the database parameter type enumerations.
size
The length of the parameter. 0 if not applicable to parameter type.
parameterValue
The parameter value.

Return Value

The number of rows affected.

Implements

ICommonAdoOperations.ExecuteNonQuery

See Also

AdoTemplate Class | Spring.Data.Generic Namespace | AdoTemplate.ExecuteNonQuery Overload List