Course info
Mar 27, 2012
3h 1m

NHibernate is a mature object-relational mapper (ORM) for the .NET Framework: it bridges the gap between an object-oriented domain model and a traditional relational database. Its purpose is to relieve the developer from a significant portion of relational data persistence-related programming tasks. This course provides an introduction to configuration, mapping, and querying with NHibernate.

About the author
About the author

James Kovacs is a Technical Evangelist for JetBrains. He is passionate in sharing his knowledge about OO, SOLID, TDD/BDD, testing, object-relational mapping, dependency injection, refactoring, continuous integration, and related techniques.

More from the author
Git Fundamentals
1h 51m
May 23, 2012
Continuous Integration
2h 34m
Dec 10, 2010
Section Introduction Transcripts
Section Introduction Transcripts

Getting Started
Hi, this is James Kovacs of Pluralsight. Welcome to this course on NHibernate Fundamentals. In this module, we're going to look at how to get started with NHibernate.

This module looks at relationships in NHibernate. We'll start of by discussing the different types of relationships that we can have between objects, both single-valued and collection-based. We'll look at the different types of collections that can be used to represent these relationships, and NHibernate has much richer collection semantics than you might be used to from normal. NET applications. We'll talk about cascades, how different operations can cascade from one object to another and why it's important. We'll discuss lazy loading of collections and objects in NHibernate, and we'll finally wrap up with the often confusing subject of inverse relationships.

In this module we're going to look at querying in NHibernate. We're going to start off talking about the differences between Get and Load to API is offer by session that are used for retrieving an object by primary key. We'll look at the link provider in NHibernate that was introduced in the NHibernate 3. 1 timeframe. We'll talk about the Hibernate Query Language or HQL, and we'll also look at the criteria API.