Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionScope Constructor

Initializes a new instance of the SessionScope class.

[Visual Basic]
Public Overloads Sub New( _
   ByVal sessionFactory As ISessionFactory, _
   ByVal entityInterceptor As IInterceptor, _
   ByVal singleSession As Boolean, _
   ByVal defaultFlushMode As FlushMode, _
   ByVal open As Boolean _
)
[C#]
SessionScope(
   ISessionFactory sessionFactory,
   IInterceptor entityInterceptor,
   bool singleSession,
   FlushMode defaultFlushMode,
   bool open
);

Parameters

sessionFactory
The ISessionFactory instance to be used for obtaining ISession instances.
entityInterceptor
Specify the IInterceptor to be set on each session provided by this SessionScope instance.
singleSession
Set whether to use a single session for each request. See SingleSession property for details.
defaultFlushMode
Specify the flushmode to be applied on each session provided by this SessionScope instance.
open
If set to true associate a session with the thread. If false, another collaborating class will associate the session with the thread, potentially by calling the Open method on this class.

See Also

SessionScope Class | Spring.Data.NHibernate.Support Namespace | SessionScope Constructor Overload List