The process of configuring NHibernate is fairly intensive and takes some time. NHibernate has to load, parse, and compile all our mappings and reflect the model. In this recipe, I'll show you how to reduce the startup time of your NHibernate application.
Complete the Configuring NHibernate with App.config recipe from the beginning of this chapter.
using System; using System.Configuration; using System.IO; using System.Reflection; using System.Runtime.Serialization.Formatters.Binary; using Configuration = NHibernate.Cfg.Configuration;
ConfigurationBuilder, add a private ...