Retrieve the current session according to the scoping defined
by this implementation.
Namespace: NHibernate.ContextAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public virtual ISession CurrentSession() |
Visual Basic |
---|
Public Overridable Function CurrentSession As ISession |
Visual C++ |
---|
public: virtual ISession^ CurrentSession() |
Return Value
The current session.Implements
ICurrentSessionContext..::..CurrentSession()()()()Exceptions
Exception | Condition |
---|---|
NHibernate..::..HibernateException | Indicates an issue locating the current session. |