Book description
This book provides examples using the IQuery, ICriteria, QueryOver, and LINQ to NHibernate API'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. Further instructions and examples exist for the insertion of parent/child relationships, Session management, entity states (transient, persistent and detached), deletion, caching, and batching.
The last chapter utilizes ASP.NET MVC 3 and jqGrid for the creation of an internet program for viewing the guitar inventory using NHibernate and the session per web request model.
Table of contents
- Cover Page
- Title Page
- Copyright
- ABOUT THE AUTHOR
- CONTENTS
- 1: Getting Started with NHibernate 3
- 2: Using HQL
-
3: Using ICriteria
- INTRODUCTION
- WORKING WITH CREATECRITERIA
- IMPLEMENTING CREATEMULTICRITERIA
- UNDERSTANDING DETACHEDCRITERIA
- WORKING WITH QUERYOVER
- USING LAMBDA EXPRESSIONS
- UNDERSTANDING FUTURES
- USING FETCHMODE
- IMPLEMENTING AGGREGATE DATABASE FUNCTIONS
- UNDERSTANDING RESTRICTIONS AND EXPRESSIONS
- WORKING WITH DATA TRANSFER OBJECTS
- SUMMARY
- 4: Using LINQ to NHibernate
- 5: Managing State and Saving Data
- 6: Using NHibernate with an ASP.NET MVC 3 Application
- INDEX
Product information
- Title: Working with NHibernate 3.0
- Author(s):
- Release date: September 2011
- Publisher(s): Wrox
- ISBN: 9781118112571
You might also like
book
Learning NHibernate 4
Explore the full potential of NHibernate to build robust data access code In Detail Connecting the …
book
NHibernate with ASP.NET Problem-Design-Solution
This Wrox Blox demonstrates how to start using NHibernate in line business applications using ASP.NET and …
book
NHibernate 4.x Cookbook - Second Edition
Over 90 incredible and powerful recipes to help you efficiently use NHibernate in your application About …
book
NHibernate in Action
In the classic style of Manning's "In Action" series, NHibernate in Action introduces .NET developers to …