Provides a current session
for each thread using the [ThreadStaticAttribute].
To avoid if there are two session factories in the same thread.
Namespace: NHibernate.ContextAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
[SerializableAttribute] public class ThreadStaticSessionContext : CurrentSessionContext |
Visual Basic |
---|
<SerializableAttribute> _ Public Class ThreadStaticSessionContext _ Inherits CurrentSessionContext |
Visual C++ |
---|
[SerializableAttribute] public ref class ThreadStaticSessionContext : public CurrentSessionContext |
Inheritance Hierarchy
System..::..Object
NHibernate.Context..::..CurrentSessionContext
NHibernate.Context..::..ThreadStaticSessionContext
NHibernate.Context..::..CurrentSessionContext
NHibernate.Context..::..ThreadStaticSessionContext