-
Relational Database Persistence with NHibernate, Part 2
Last updated: Sunday, October 5, 2025
Published in: CODE Magazine: 2009 - July/August
Chad Myers explains how to map and work with one-to-many relationships in NHibernate, using a Customer and its SalesOrderHeader as an example, and outlines the best ways to choose and configure collection types (bag, set, list, map, array) for OTM relationships. He covers bi-directional mappings with inverse, how to persist and synchronize in-memory collections, and the role of lazy loading, cascading, and performance considerations (batching, ordering, and filtering) in real-world use, while hinting at more advanced topics to come.
-
Relational Database Persistence with NHibernate, Part 1
Last updated: Wednesday, August 31, 2022
Published in: CODE Magazine: 2009 - May/June
Take advantage of the best relational databases and object-oriented design have to offer without compromising either.Using an object/relational mapping framework like NHibernate, you can significantly reduce the amount of code you write (and therefore potential bugs) for performing standard operations against your database and save the heavy ADO.NET coding for the complicated scenarios.
-
NHibernate Succinctly
Last updated: Wednesday, February 20, 2019
Published in: Book Excerpts, Newsletters
Master a powerful and flexible ORM with support for database engines including Microsoft SQL, Oracle, MySQL, and more.