Create database connection and open a ISession on it, specifying an interceptor

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
ISession OpenSession(
	IInterceptor sessionLocalInterceptor
)
Visual Basic
Function OpenSession ( _
	sessionLocalInterceptor As IInterceptor _
) As ISession
Visual C++
ISession^ OpenSession(
	IInterceptor^ sessionLocalInterceptor
)

Parameters

sessionLocalInterceptor
Type: NHibernate..::..IInterceptor
A session-scoped interceptor

Return Value

A session

See Also