Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SessionScopeSettings Constructor

Initialize a new instance of SessionScopeSettings with the given values and references.

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

Parameters

sessionFactory
The ISessionFactory instance to be used for obtaining ISession instances.
entityInterceptor
Specify the IInterceptor to be set on each session provided by the 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 the SessionScope instance.

Remarks

Calling this constructor marks all properties initialized.

See Also

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