コード例 #1
0
        protected override IPersistenceConfigurer GetDatabaseConfiguration()
        {
            var provider = new TestConnectionProvider("__NAME__");

            return MsSqlConfiguration.MsSql2012
                .ConnectionString(provider.GetConnectionString());
        }
コード例 #2
0
        protected override IPersistenceConfigurer GetDatabaseConfiguration()
        {
            var provider = new TestConnectionProvider("__NAME__");

            return(MsSqlConfiguration.MsSql2012
                   .ConnectionString(provider.GetConnectionString()));
        }
コード例 #3
0
 public IStatelessSession GetStatelessSession()
 {
     var sessionFactory = new TestSessionFactoryConfig().CreateSessionFactory();
     var connectionProvider = new TestConnectionProvider("__NAME__");
     return sessionFactory.OpenStatelessSession(connectionProvider.GetConnection());
 }