public ISession Create() { var connection = dbAdapter.CreateConnection(connectionString); var commandFactory = new DbCommandFactory(dbAdapter, connection); return new Session(domainMap, connection, commandFactory, dbAdapter, sessionCacheProvider()); }