Namespaces

Types

Type CurrentSessionContext

Namespace NHibernate.Context

Interfaces ICurrentSessionContext

Methods

Public instance methods

ISession CurrentSession()

Retrieve the current session according to the scoping defined by this implementation.
Parameters
return ISession The current session.

bool Equals(object obj)

Parameters
return bool
object obj

int GetHashCode()

Parameters
return int

Type GetType()

Parameters
return Type

string ToString()

Parameters
return string

Public static methods

void Bind(ISession session)

Binds the specified session to the current context.
Parameters
ISession session

bool HasBind(ISessionFactory factory)

Returns whether there is a session bound to the current context.
Parameters
return bool
ISessionFactory factory

ISession Unbind(ISessionFactory factory)

Unbinds and returns the current session.
Parameters
return ISession
ISessionFactory factory