C# Class 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)
Inheritance: SessionHolder
Afficher le fichier Open project: spring-projects/spring-net

Méthodes publiques

Méthode Description
Close ( ) : void

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

LazySessionHolder ( SessionScope owner ) : System

Initialize a new instance.

Méthodes protégées

Méthode Description
EnsureInitialized ( ) : void

Create a new session on demand

Method Details

Close() public méthode

Ensure session is closed (if any) and remove circular references to avoid memory leaks!
public Close ( ) : void
Résultat void

EnsureInitialized() protected méthode

Create a new session on demand
protected EnsureInitialized ( ) : void
Résultat void

LazySessionHolder() public méthode

Initialize a new instance.
public LazySessionHolder ( SessionScope owner ) : System
owner SessionScope
Résultat System