Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate Constructor

Initializes a new instance of the HibernateTemplate class.

[Visual Basic]
Public Overloads Sub New( _
   ByVal sessionFactory As ISessionFactory, _
   ByVal allowCreate As Boolean _
)
[C#]
HibernateTemplate(
   ISessionFactory sessionFactory,
   bool allowCreate
);

Parameters

sessionFactory
The session factory to create sessions.
allowCreate
if set to true allow creation of a new non-transactional session when no transactional Session can be found for the current thread.

See Also

HibernateTemplate Class | Spring.Data.NHibernate.Generic Namespace | HibernateTemplate Constructor Overload List