When using NHibernate as our ORM framework, we can identify four main types of mappings:
The following section will explain the main concepts behind these different ways of mapping the domain to an underlying database.
There also exist some OSS and commercial tools that provide the possibility to visually design the mapping between the domain and the underlying database schema. However, this approach is outside the scope of this book.
Each type of the model is mapped with an XML document to a table in the database schema. The structure of this XML document is defined in the