Cover; Contents; Chapter 1: Getting Started with Nhibernate 3; What Is an ORM?; Creating a Sample Project: The GuitarStore; Configuring NHibernate; Configuring the GuitarStore WPF Program; Understanding Lazy Loading; Configuring Logging Using log4net; Serializing Startup; Interceptors and Events; Summary; Chapter 2: Using HQL; Introduction; Working with CreateQuery(); Implementing CreateMultiQuery(); Understanding GetNamedQuery(); Understanding DetachedQuery; Working with DetachedNamedQuery; Understanding Futures; Summary; Chapter 3: Using ICriteria; Introduction; Working with CreateCriteria
Summary
This book provides examples using the IQuery, ICriteria, QueryOver, and LINQ to NHibernate API & rsquo;s within the context of an example Guitar Store inventory program. The reader is walked through the creation of a Microsoft SQL Server 2008 database, the creation of a Visual Studio 2010 solution consisting of 3 projects (a Window Presentation Foundation (WPF), a Console Application, and a Class Library). Each one utilizes the .NET 4.0 framework. Then the reader is walked through the steps required to configure and use the many features available contained within NHibernate 3.2. & nbs