C# Класс Spring.Data.NHibernate.Support.SessionScope.LazySessionHolder

This sessionHolder creates a default session only if it is needed.
Although a NHibernateSession deferes creation of db-connections until they are really needed, instantiation a session is imho still more expensive than this LazySessionHolder. (EE)
Наследование: SessionHolder
Показать файл Открыть проект

Открытые методы

Метод Описание
Close ( ) : void

Ensure session is closed (if any) and remove circular references to avoid memory leaks!

LazySessionHolder ( SessionScope owner ) : System

Initialize a new instance.

Защищенные методы

Метод Описание
EnsureInitialized ( ) : void

Create a new session on demand

Описание методов

Close() публичный Метод

Ensure session is closed (if any) and remove circular references to avoid memory leaks!
public Close ( ) : void
Результат void

EnsureInitialized() защищенный Метод

Create a new session on demand
protected EnsureInitialized ( ) : void
Результат void

LazySessionHolder() публичный Метод

Initialize a new instance.
public LazySessionHolder ( SessionScope owner ) : System
owner SessionScope
Результат System