Index: IBatisNet.DataMapper/MappedStatements/MappedStatement.cs
===================================================================
--- IBatisNet.DataMapper/MappedStatements/MappedStatement.cs (revision 279328)
+++ IBatisNet.DataMapper/MappedStatements/MappedStatement.cs (working copy)
@@ -457,7 +457,7 @@
///
public virtual IList ExecuteQueryForRowDelegate( IDalSession session, object parameterObject, SqlMapper.RowDelegate rowDelegate )
{
- RequestScope request = _statement.Sql.GetRequestScope(parameterObject, session);;
+ RequestScope request = _statement.Sql.GetRequestScope(parameterObject, session);
if (rowDelegate == null)
{
@@ -579,7 +579,7 @@
{
object obj = ApplyResultMap(request, reader, null);
- rowDelegate(obj, list);
+ rowDelegate(obj, parameterObject, list);
n++;
}
}
@@ -794,7 +794,7 @@
{
value = ObjectProbe.GetPropertyValue(obj, valueProperty);
}
- rowDelegate(key, value, map);
+ rowDelegate(key, value, parameterObject, map);
}
}
Index: IBatisNet.DataMapper/SqlMapper.cs
===================================================================
--- IBatisNet.DataMapper/SqlMapper.cs (revision 279328)
+++ IBatisNet.DataMapper/SqlMapper.cs (working copy)
@@ -57,14 +57,13 @@
///
/// A delegate called once per row in the QueryWithRowDelegate method
///
- public delegate void RowDelegate(object obj, IList list);
+ public delegate void RowDelegate(object obj, object parameter, IList list);
///
/// A delegate called once per row in the QueryWithRowDelegate method
///
- public delegate void DictionaryRowDelegate(object key, object value, IDictionary dictionary);
+ public delegate void DictionaryRowDelegate(object key, object value, object parameter, IDictionary dictionary);
-
#region Fields
//(MappedStatement Name, MappedStatement)
private HybridDictionary _mappedStatements = new HybridDictionary();