In this chapter, we discussed various possibilities to map our domain to an underlying database.
Specifically, we covered:
- The different types of mappings that exist
- How we map entities and their properties to database tables and table columns
- The possibility to influence the mapping process by defining new, or override existing specifications of the mapping framework
- How we can avoid defining explicit mappings altogether
- Using NHibernate to create a SQL schema creation script
Now that we have defined our domain and mapped it to a database, we can move on to discuss the session and transaction objects, which are used to communicate to the database when storing and/or retrieving data.