C# Class Cronos.Infrastructure.NHibernate.LazySessionContext

Inheritance: ICurrentSessionContext
Afficher le fichier Open project: mravinale/simple-cqrs Class Usage Examples

Méthodes publiques

Méthode Description
Bind ( ISessionFactory sessionFactory ) : void
Bind ( Lazy sessionInitializer, ISessionFactory sessionFactory ) : void

Bind a new sessionInitializer to the context of the sessionFactory.

CurrentSession ( ) : ISession

Retrieve the current session for the session factory.

LazySessionContext ( ISessionFactoryImplementor factory ) : System
UnBind ( ISessionFactory sessionFactory ) : ISession

Unbind the current session of the session factory.

Private Methods

Méthode Description
BeginSession ( ISessionFactory sf ) : ISession
GetCurrentFactoryMap ( ) : Lazy>.IDictionary

Provides the CurrentMap of SessionFactories. If there is no map create/store and return a new one.

Method Details

Bind() public static méthode

public static Bind ( ISessionFactory sessionFactory ) : void
sessionFactory ISessionFactory
Résultat void

Bind() public static méthode

Bind a new sessionInitializer to the context of the sessionFactory.
public static Bind ( Lazy sessionInitializer, ISessionFactory sessionFactory ) : void
sessionInitializer Lazy
sessionFactory ISessionFactory
Résultat void

CurrentSession() public méthode

Retrieve the current session for the session factory.
public CurrentSession ( ) : ISession
Résultat ISession

LazySessionContext() public méthode

public LazySessionContext ( ISessionFactoryImplementor factory ) : System
factory ISessionFactoryImplementor
Résultat System

UnBind() public static méthode

Unbind the current session of the session factory.
public static UnBind ( ISessionFactory sessionFactory ) : ISession
sessionFactory ISessionFactory
Résultat ISession