The original way of configuring NHibernate is through XML. There are two ways we can use to define the configuration. It can either be part of the application configuration file for a classical Windows application or the
Web.config file for a web-based application. We can alternatively define the configuration in a separate XML file.