in an IpreInsertEventListener I'm using something like this:
var innerSession = evt.Session.GetSession( evt.Session.EntityMode )
in oder to have a child session. The parent session is used in this way:
using( var dc = factory.OpenSession() )
{
using( var tx = dc.BegingTransaction( IsolationLevel.Serializable )
)
{
dc.Insert( estimate );
dc.FlushChanges();
tx.Commit();
}
}
NHProof issue an alert, on the second session saying that: "the usage of
implicit transaction is discouraged", but as far as I can understand there
Is no implicit transaction here, the second session inherits (and the
debugger confirm this) all the parent session settings.
.m