Hello,

I am using NHibernate v3.0 Alpha 2 in VS 3008 (.Net 3.5).  I have
implemented the interface to use the OnPostInsert method.  The method
receives a PostInsertEvent object.  From that, there is an enumeration
for several other objects.  I am trying to get a handle to the
session's connection and then the connection's transaction so that I
can do a database  update call.  In order to get the "session", I use:

IEventSource evtSrc = @event.Session;

>From the evtSrc, there seems to be two references to an IDbConnection:
    -  NHibernate.Engine.ISessionImplementor.Connection
    -  NHibernate.ISession.Connection

My problem is that I get an "Ambiguity" compile exception when I try
to use "evtSrc.Connection".  I tried casting, using var, and using an
object, but simply stating evtSrc.Connection throws the error.

So my question is, how can I get a handle to the current connection
object through the PostInsertEvent object?

Any thoughts on what I am missing?

Thanks - Peter

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to