Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AdoTemplate.QueryWithRowCallback(CommandType, String, IRowCallback, String, Enum, Int32, Object) Method

Execute a query given IDbCommand's type and text and provided parameter information, reading a single result set on a per-row basis with a IRowCallback.

[Visual Basic]
Public NotOverridable Overloads Sub QueryWithRowCallback( _
   ByVal cmdType As CommandType, _
   ByVal cmdText As String, _
   ByVal rowCallback As IRowCallback, _
   ByVal parameterName As String, _
   ByVal dbType As Enum, _
   ByVal size As Integer, _
   ByVal parameterValue As Object _
) _
    Implements ICommonAdoOperations.QueryWithRowCallback
[C#]
public void QueryWithRowCallback(
   CommandType cmdType,
   string cmdText,
   IRowCallback rowCallback,
   string parameterName,
   Enum dbType,
   int size,
   object parameterValue
);

Parameters

cmdType
The type of command
cmdText
The text of the query.
rowCallback
callback that will extract results one row at a time.
parameterName
The name of the parameter to map.
dbType
One of the database parameter type enumerations.
size
The length of the parameter. 0 if not applicable to parameter type.
parameterValue
The parameter value.

Implements

ICommonAdoOperations.QueryWithRowCallback

See Also

AdoTemplate Class | Spring.Data.Core Namespace | AdoTemplate.QueryWithRowCallback Overload List