You can easily associate the Fluent NHibernate configuration with your application configuration, instead of directly configuring the code; which would allow you to replace your configuration files depending on your environment.
Fluently.Configure()
.Database(
SQLiteConfig.Standard
.ConnnectionString(c => c.FromAppSetting("your-key")))
.Mappings()
.BuildSessionFactory();
source
share