Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ICommonAdoOperations.ExecuteScalar(CommandType, String, IDbParameters) Method

Execute the query with the specified command text and parameters returning a scalar result

[Visual Basic]
Public Sub ExecuteScalar( _
   ByVal cmdType As CommandType, _
   ByVal cmdText As String, _
   ByVal parameters As IDbParameters _
)
[C#]
object ExecuteScalar(
   CommandType cmdType,
   string cmdText,
   IDbParameters parameters
);

Parameters

cmdType
The command type
cmdText
The command text to execute.
parameters
The parameter collection to map.

Return Value

The first column of the first row in the result set

See Also

ICommonAdoOperations Interface | Spring.Data Namespace | ICommonAdoOperations.ExecuteScalar Overload List