iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

SqlMapper.QueryWithRowDelegate Method (String, Object, RowDelegate<T>)

Runs a query for list with a custom object that gets a chance to deal with each row as it is processed.

The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
[Visual Basic]
NotOverridable Overloads Public Function QueryWithRowDelegate( _
   ByVal String As String, _
   ByVal Object As Object, _
   ByVal RowDelegate<T> As RowDelegate{``0} _
) As IList{``0} _
    Implements ISqlMapper.
[C#]
public IList<T> <T>QueryWithRowDelegate(
   String statementName,
   Object parameterObject,
   RowDelegate<T> rowDelegate
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.
rowDelegate

Return Value

A List of result objects.

Implements

ISqlMapper.

See Also

SqlMapper Class | IBatisNet.DataMapper Namespace | SqlMapper.QueryWithRowDelegate Overload List