private void InitializeSessionFactories() { bool writeOnly = false; foreach (var connectionString in _connectionStrings) { NHibernateSessionManager.AddSessionFactory(connectionString, writeOnly); writeOnly = true; } }