Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ICommonAdoOperations.ExecuteScalar(IDbCommandCreator) Method

Execute the query with a command created via IDbCommandCreator and parameters

[Visual Basic]
Public Sub ExecuteScalar( _
   ByVal commandCreator As IDbCommandCreator _
)
[C#]
IDictionary ExecuteScalar(
   IDbCommandCreator commandCreator
);

Parameters

commandCreator
The callback to create a IDbCommand.

Return Value

A dictionary containing output parameters, if any

Remarks

Output parameters can be retrieved via the returned dictionary.

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

See Also

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