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

InsertMappedStatement.ExecuteQueryForMapWithRowDelegate Method 

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

[Visual Basic]
Overrides Public Function ExecuteQueryForMapWithRowDelegate( _
   ByVal ISqlMapSession As ISqlMapSession, _
   ByVal Object As Object, _
   ByVal String As String, _
   ByVal String As String, _
   ByVal DictionaryRowDelegate As DictionaryRowDelegate _
) As IDictionary _
    Implements IMappedStatement.
[C#]
public override IDictionary ExecuteQueryForMapWithRowDelegate(
   ISqlMapSession session,
   Object parameterObject,
   String keyProperty,
   String valueProperty,
   DictionaryRowDelegate rowDelegate
);

Parameters

session
The session used to execute the statement
parameterObject
The object used to set the parameters in the SQL.
keyProperty
The property of the result object to be used as the key.
valueProperty
The property of the result object to be used as the value (or null)
rowDelegate

Return Value

A hashtable of object containing the rows keyed by keyProperty.

Implements

IMappedStatement.

Exceptions

Exception Type Condition
DataMapperException If a transaction is not in progress, or the database throws an exception.

See Also

InsertMappedStatement Class | IBatisNet.DataMapper.MappedStatements Namespace