When calling an update in FNH, I get the following error:
Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index
It's probably some bad mapping. What is the best way to diagnose this? I really want to see the UPDATE it is trying to issue.
Here is the code:
public void Update<T>(IEnumerable<T> values)
{
foreach (var value in values)
{
using (var tx = Session.BeginTransaction())
{
this.Update(value, tx);
tx.Commit();
}
}
}