Thanks for correcting me Fabio :-)
And also for the tip about knowing where to look!
C
On Nov 8, 12:05 pm, "Fabio Maulo" <[EMAIL PROTECTED]> wrote:
> 2008/11/8 christianacca <[EMAIL PROTECTED]>
>
>
>
> > I'm obviously not a trusting kinda guy ;-)
>
> I would like to leave you with all your doubt for long time, especially
> because your are sure that you are looking in the right place.What is clear
> is that you don't know that NH allow you to inject your IConnectionProvider
> trough configuration and do what you want with the connection.
> BTW for curious people :
> <logger name="NHibernate.Connection.ConnectionProvider">
> <level value="DEBUG" />
> </logger>
>
> log.Debug("Opening Session and transaction.");
> using (ISession session = OpenSession())
> using (ITransaction tx = session.BeginTransaction())
> {
> log.Debug("Save1.");
> session.Save(john);
>
> log.Debug("Going to commit.");
> tx.Commit();
> log.Debug("Committed.");}
>
> log.Debug("Session closed.");
>
> The output is:
> Fixture:30 - Save1.
> Fixture:37 - Going to commit.
> ConnectionProvider:28 - Closing connection
> Fixture:39 - Committed.
> Fixture:41 - Session closed.
>
> When you take a look inside NH code is very important to know where look...
> believe me it is not so easy.
>
> Ah... next time : Trust us!! ;-)
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---