Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

IAdoOperations.Execute(T)(CommandDelegate) Method

Execute a ADO.NET operation on a command object using a generic delegate callback.

[Visual Basic]
Public Sub Execute(Of T)( _
   ByVal del As CommandDelegate(Of T) _
)
[C#]
T Execute<T>(
   CommandDelegate<T> del
);

Parameters

del
The delegate called with a DbCommand object.

Return Value

A result object returned by the action or null

Remarks

This allows for implementing arbitrary data access operations on a single command within Spring's managed ADO.NET environment.

See Also

IAdoOperations Interface | Spring.Data.Generic Namespace | IAdoOperations.Execute(T) Overload List