Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoTemplate.ExecuteScalar(CommandType, String, ICommandSetter) Method

Execute the query with the specified command text and parameters set via the command setter, returning a scalar result

[Visual Basic]
Public NotOverridable Overloads Sub ExecuteScalar( _
   ByVal cmdType As CommandType, _
   ByVal cmdText As String, _
   ByVal commandSetter As ICommandSetter _
) _
    Implements ICommonAdoOperations.ExecuteScalar
[C#]
public object ExecuteScalar(
   CommandType cmdType,
   string cmdText,
   ICommandSetter commandSetter
);

Parameters

cmdType
The command type
cmdText
The command text to execute.
commandSetter
The command setter.

Return Value

The first column of the first row in the result set

Implements

ICommonAdoOperations.ExecuteScalar

See Also

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