1.1. What Is an Object Relational Mapper?

The role of an Object Relational Mapper (ORM) is to bridge the gap between the relational model (the database) and the object-oriented model. This problem is often referred to as "the impedance mismatch." Using mapping files or attributes on a business object, an ORM Framework can be used to persist business objects to the database and retrieve them simply via the ORM Framework's API with little or no SQL needed.

1.1.1. Why NHibernate?

NHibernate is a port of the popular Open Source Hibernate Framework for Java. Hibernate has been around for years, and it's a proven and robust piece of software. ORM has had a slow take-up in the .NET world, but with the release of LINQToSQL and the beta of the Entity ...

Get NHibernate with ASP.NET Problem-Design-Solution now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.