>From ISessionFactory
/// <summary>
/// Open a <c>ISession</c> on the given connection
/// </summary>
/// <param name="conn">A connection provided by the application</param>
/// <returns>A session</returns>
/// <remarks>
/// Note that the second-level cache will be disabled if you
/// supply a ADO.NET connection. NHibernate will not be able to track
/// any statements you might have executed in the same transaction.
/// Consider implementing your own <see cref="IConnectionProvider" />.
/// </remarks>
ISession OpenSession(IDbConnection conn);

2009/8/12 Rene <[email protected]>

>
> is there a way to make nhibernate make use of an existing
> SqlConnection?, i need to port a quite big web app, and would like to
> move a few things to use nhibernate, is there a way to do that?, or if
> i put the same connection string as the one we are currently using,
> will it be pooled too?
> >
>


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

Reply via email to