コード例 #1
0
 /// <summary>
 /// Initializes a new instance of <c>NHibernateContext</c> class.
 /// </summary>
 public NHibernateContext(Configuration nhibernateConfig)
     : this()
 {
     databaseSessionFactory = new DatabaseSessionFactory(nhibernateConfig);
     session = databaseSessionFactory.Session;
     SetupTransaction();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of <c>NHibernateContext</c> class.
 /// </summary>
 public NHibernateContext(Configuration nhibernateConfig)
     : this()
 {
     databaseSessionFactory = new DatabaseSessionFactory(nhibernateConfig);
     session = databaseSessionFactory.Session;
 }