Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoTemplate.Execute(T)(IDbCommandCreator, IDbCommandCallback) Method

Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, using the interface based callback IDbCommandCallback.

[Visual Basic]
Public NotOverridable Overloads Sub Execute(Of T)( _
   ByVal commandCreator As IDbCommandCreator, _
   ByVal action As IDbCommandCallback(Of T) _
) _
    Implements IAdoOperations.Execute
[C#]
public T Execute<T>(
   IDbCommandCreator commandCreator,
   IDbCommandCallback<T> action
);

Parameters

commandCreator
The command creator.
action
The callback to execute based on IDbCommand

Return Value

A result object returned by the action or null

Implements

IAdoOperations.Execute

See Also

AdoTemplate Class | Spring.Data.Generic Namespace | AdoTemplate.Execute(T) Overload List