Create database connection and open a ISession on it, specifying an interceptor
Namespace:
NHibernateAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function OpenSession ( _ interceptor As IInterceptor _ ) As ISession |
C# |
---|
ISession OpenSession( IInterceptor interceptor ) |
Visual C++ |
---|
ISession^ OpenSession( IInterceptor^ interceptor ) |
JavaScript |
---|
function openSession(interceptor); |
Parameters
- interceptor
- Type: NHibernate..::.IInterceptor
A session-scoped interceptor