NHibernate offers several methods for configuration and a number of configuration settings.
In this recipe, we will show you how to configure NHibernate using the
hibernate.cfg.xml configuration file, with a minimal number of settings to get your application up and running quickly. The recipe also forms the base for several other recipes in this chapter.
ConfigByXmlproject using the NuGet Package Manager Console.
ConfigByXml, add a reference to the