Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoTemplate.ExecuteScalar(IDbCommandCreator) Method

Execute the query with a command created via IDbCommandCreator and parameters

[Visual Basic]
Public NotOverridable Overloads Sub ExecuteScalar( _
   ByVal commandCreator As IDbCommandCreator _
) _
    Implements ICommonAdoOperations.ExecuteScalar
[C#]
public IDictionary ExecuteScalar(
   IDbCommandCreator commandCreator
);

Parameters

commandCreator
The callback to create a IDbCommand.

Return Value

A dictionary containing output parameters, if any

Implements

ICommonAdoOperations.ExecuteScalar

Remarks

Output parameters can be retrieved via the returned dictionary.

More commonly used as a lower level support method within the framework, for example for StoredProcedure/AdoScalar.

See Also

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