Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionFactoryUtils.IsSessionTransactional Method

Return whether the given Hibernate Session is transactional, that is, bound to the current thread by Spring's transaction facilities.

[Visual Basic]
Public Shared Sub IsSessionTransactional( _
   ByVal session As ISession, _
   ByVal sessionFactory As ISessionFactory _
public static bool IsSessionTransactional(
   ISession session,
   ISessionFactory sessionFactory


The hibernate session to check
The session factory that the session was created with, can be null.

Return Value

true if the session transactional; otherwise, false.

See Also

SessionFactoryUtils Class | Spring.Data.NHibernate Namespace