C# 클래스 Cronos.Infrastructure.NHibernate.LazySessionContext

상속: ICurrentSessionContext
파일 보기 프로젝트 열기: mravinale/simple-cqrs 1 사용 예제들

공개 메소드들

메소드 설명
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