C# Класс Cronos.Infrastructure.NHibernate.LazySessionContext

Наследование: ICurrentSessionContext
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

Приватные методы

Метод Описание
BeginSession ( ISessionFactory sf ) : ISession
GetCurrentFactoryMap ( ) : Lazy>.IDictionary

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

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

Bind() публичный статический Метод

public static Bind ( ISessionFactory sessionFactory ) : void
sessionFactory ISessionFactory
Результат void

Bind() публичный статический Метод

Bind a new sessionInitializer to the context of the sessionFactory.
public static Bind ( Lazy sessionInitializer, ISessionFactory sessionFactory ) : void
sessionInitializer Lazy
sessionFactory ISessionFactory
Результат void

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

Retrieve the current session for the session factory.
public CurrentSession ( ) : ISession
Результат ISession

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

public LazySessionContext ( ISessionFactoryImplementor factory ) : System
factory ISessionFactoryImplementor
Результат System

UnBind() публичный статический Метод

Unbind the current session of the session factory.
public static UnBind ( ISessionFactory sessionFactory ) : ISession
sessionFactory ISessionFactory
Результат ISession