This Wrox Blox demonstrates how to start using NHibernate in line business applications using ASP.NET and VB.NET. Using NHibernate will speed up your application development by removing the need to build your own Data Access Layer (DAL). In addition, you can focus solely on the business problem instead of the infrastructure concerns. Using a simple demo application as an example, this Wrox Blox shows how easy it is to get started with NHibernate and build your DAL in minutes instead of hours. Readers will also see how the POCO pattern enables you to keep your DAL as unobtrusive as possible as well as being interchangeable for future DAL implementations. You will also see how NHibernate has many enterprise patterns built into it, like the Unit of Work pattern and the Identity Map.Table of ContentsWhat Is an Object Relational Mapper? 2Why NHibernate? 2Part 1: Getting Started with NHibernate 2A Quick Demo 2Part 2: The NHibernate Framework 13Architecture and Core Concepts 13Mapping Your Entities: Impedance Mismatch 16Persisting Business Objects 18Part 3: Using NHibernate 19Introducing the Project and Laying out the Solution Framework 19Designing the Domain Model 23NHibernate Repository Project: Base Class 39Managing Products 48Managing Customers 58NHibernate Repository Project: Refactoring and Session Management 69Managing Orders 74The Database A Question of Storage 94Presentation with the ModelViewPresenter Pattern 96User Interface: ASP.NET 103Part 4: Other NHibernate Bits and Pieces 113Other Querying Methods 113Mapping Inheritance 115What Kind of SQL Is Being Produced? 118Wrap Up 119Scott Millett 120Usage Rights for Wiley Wrox BloxAny Wrox Blox you purchase from this site will come with certain restrictions that allow Wiley to protect the copyrights of its products. After you purchase and download this title, you:Are entitled to three downloadsAre entitled to make a backup copy of the file for your own useAre entitled to print the Wrox Blox for your own useAre entitled to make annotations and comments in the Wrox Blox file for your own useMay not lend, sell or give the Wrox Blox to another userMay not place the Wrox Blox file on a network or any file sharing service for use by anyone other than yourself or allow anyone other than yourself to access itMay not copy the Wrox Blox file other than as allowed aboveMay not copy, redistribute, or modify any portion of the Wrox Blox contents in any way without prior permission from WileyIf you have any questions about these restrictions, you may contact Customer Care at (877) 762-2974 (8 a.m. - 5 p.m. EST, Monday - Friday). If you have any issues related to Technical Support, please contact us at 800-762-2974 (United States only) or 317-572-3994 (International) 8 a.m. - 8 p.m. EST, Monday - Friday).