public override ISessionFactory GetSessionFactory()
        {
            string connectionString = Configuration.Properties[NHibernate.Cfg.Environment.ConnectionString];
            _openConnection = new SQLiteConnection(connectionString);
            _openConnection.Open();

            BuildSchema(Configuration, _openConnection);

            _innerSessionFactory = base.GetSessionFactory();
            _innerSessionFactory.OpenSession(_openConnection);

            _sessionFactory = new SingleConnectionSessionFactory(_innerSessionFactory, _openConnection);

            return _sessionFactory;
        }
        public override ISessionFactory GetSessionFactory()
        {
            string connectionString = Configuration.Properties[NHibernate.Cfg.Environment.ConnectionString];

            _openConnection = new SQLiteConnection(connectionString);
            _openConnection.Open();

            BuildSchema(Configuration, _openConnection);

            _innerSessionFactory = base.GetSessionFactory();
            _innerSessionFactory.OpenSession(_openConnection);

            _sessionFactory = new SingleConnectionSessionFactory(_innerSessionFactory, _openConnection);

            return(_sessionFactory);
        }
        public override ISessionFactory GetSessionFactory()
        {
            var connectionString = this.Configuration.Properties[NHibernate.Cfg.Environment.ConnectionString];

            this.openConnection = new SQLiteConnection(connectionString);
            this.openConnection.Open();

            BuildSchema(this.Configuration, this.openConnection);

            this.innerSessionFactory = base.GetSessionFactory();
            this.innerSessionFactory.OpenSession(this.openConnection);

            this.sessionFactory = new SingleConnectionSessionFactory(this.innerSessionFactory, this.openConnection);

            return(this.sessionFactory);
        }