Extends the contract defined by ICurrentSessionContext
by providing methods to bind and unbind sessions to the current context.
Namespace: NHibernate.ContextAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public abstract class CurrentSessionContext : ICurrentSessionContext |
Visual Basic |
---|
<SerializableAttribute> _ Public MustInherit Class CurrentSessionContext _ Implements ICurrentSessionContext |
Visual C++ |
---|
[SerializableAttribute] public ref class CurrentSessionContext abstract : ICurrentSessionContext |
Remarks
The notion of a contextual session is managed by some external entity
(generally some form of interceptor like the HttpModule).
This external manager is responsible for scoping these contextual sessions
appropriately binding/unbinding them here for exposure to the application
through GetCurrentSession()()()() calls.
Inheritance Hierarchy
System..::..Object
NHibernate.Context..::..CurrentSessionContext
NHibernate.Context..::..MapBasedSessionContext
NHibernate.Context..::..ThreadStaticSessionContext
NHibernate.Context..::..CurrentSessionContext
NHibernate.Context..::..MapBasedSessionContext
NHibernate.Context..::..ThreadStaticSessionContext