This question and the stored procedure question are things that in general
you don't care about when working with an ORM.
If you need such control why don't you work directly with ADO?

Gustavo

On Tue, Dec 28, 2010 at 6:39 PM, Armin Landscheidt
<[email protected]>wrote:

> Is it possible to force NHibernate logging out from the server?
>
> If I do something like
>
> using(var session = sessionFactory.OpenSession()){
>    using(var transaction = session.BeginTransaction()){
>        //fire some queries
>        transaction.Commit();
>    }
> }
>
> using(var session = sessionFactory.OpenSession()){
>    using(var transaction = session.BeginTransaction()){
>        //fire some other queries
>        transaction.Commit();
>    }
> }
>
> NHibernate does not close the connection after the first
> transaction.Commit(). It closes the connection on the second
> session.BeginTransaction()
>
> How can I force a logout after using the first session?
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

-- 
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