Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ICommandCallback(T) Interface

Generic callback interface for code that operates on a DbCommand.

For a list of all members of this type, see ICommandCallback(T) Members .

[Visual Basic]
Public Interface ICommandCallback(Of T)
public interface ICommandCallback<T>

Generic template parameters

The return type from executing the callback


Allows you to execute any number of operations on a single DbCommand, for example a single ExecuteScalar call or repeated execute calls with varying parameters.

Used internally by AdoTemplate, but also useful for application code. Note that the passed in DbCommand has been created by the framework and will have its Connection property set and the Transaction property set based on the transaction context.


Namespace: Spring.Data.Generic

Assembly: Spring.Data (in Spring.Data.dll)

See Also

ICommandCallback(T) Members | Spring.Data.Generic Namespace