In the 7th and final episode of this series, you’ll see some code examples of working with collections of related objects and how lazy loading and cascade operations work from a code perspective.
We’ll also discuss object lifecycle management in NHibernate as well as guidance on how to manage lifecycle and cascade operations on collections of related objects. Finally, we’ll discuss how to perform ad-hoc queries with NHibernate including simple as well as aggregate projection queries using both the Hibernate Query Language (HQL) and the ICriteria API.
In this episode we will continued our dive into how to use NHibernate.
we’ll discuss some of the types of collections (bag, set, and list), some of the features NHibernate offers for loading, sorting, and pre-filtering collection data, and how cascading and transparent lazy loading works with collections of related objects.
In this episode you will learn about you will learn how to perform basic CRUD operations with NHibernate as well as dive into some of its transparent cascading features such as save (insert) and update.
In this episode you will learn about how to install NHibernate as well as how get started with XML mappings to your object domain model. You will learn how to map a class to a table, specify the primary key/identifier, and map properties to columns.
In this episode, you will learn about the reasons why you might use an Object/Relational Mapper (ORM). You will also hear why NHibernate is a particularly good ORM, when it is appropriate to use NHibernate and when it is NOT appropriate to use NHibernate. Finally, you will hear why you might choose NHibernate over the ADO.NET Entity Framework and Linq2Sql and when and might not choose it.