This Wrox Blox demonstrates how to start using NHibernate in linebusiness applications using ASP.NET and VB.NET. Using NHibernatewill speed up your application development by removing the need tobuild your own Data Access Layer (DAL). In addition, you can focussolely on the business problem instead of the infrastructureconcerns. Using a simple demo application as an example, this WroxBlox shows how easy it is to get started with NHibernate and buildyour DAL in minutes instead of hours. Readers will also see how thePOCO pattern enables you to keep your DAL as unobtrusive aspossible as well as being interchangeable for future DALimplementations. You will also see how NHibernate has manyenterprise patterns built into it, like the Unit of Work patternand the Identity Map.
Table of Contents'
What Is an Object Relational Mapper? 2'
Why NHibernate? 2'
Part 1: Getting Started with NHibernate 2'
A Quick Demo 2'
Part 2: The NHibernate Framework 13'
Architecture and Core Concepts 13
Mapping Your Entities: Impedance Mismatch 16
Persisting Business Objects 18'
Part 3: Using NHibernate 19'
Introducing the Project and Laying out the Solution Framework19
Designing the Domain Model 23
NHibernate Repository Project: Base Class 39
Managing Products 48
Managing Customers 58
NHibernate Repository Project: Refactoring and SessionManagement 69
Managing Orders 74
The Database -- A Question of Storage 94
Presentation with the Model-View-Presenter Pattern96
User Interface: ASP.NET 103'
Part 4: Other NHibernate Bits and Pieces 113'
Other Querying Methods 113
Mapping Inheritance 115
What Kind of SQL Is Being Produced? 118'
Wrap Up 119
Scott Millett 120'
Auflage
Sprache
Verlagsort
Verlagsgruppe
Produkt-Hinweis
Dateigröße
ISBN-13
978-1-118-03536-8 (9781118035368)
Schweitzer Klassifikation
Scott Millett is the senior developer for wiggle.co.uk, an e-commerce company specializing in cycle and tri athlete sports based in the UK. He has been working with .Net since version 1.0 and has earned the Microsoft Certified Professional Web Developer certification. He is a regular contributor to the asp.net forums and when not writing about or working with .net he can be found relaxing and enjoying the music at Glastonbury and all of the major music festivals in the UK during the summer.