NHibernate 2 Beginner's Guide
Formats:
save 15%!
save 37%!
Free Shipping!
| Also available on: |
|
- Incorporate robust, efficient data access into your .Net projects
- Gain database independence, not tied to any particular technology
- Avoid spending countless hours developing data access layers
- Eliminate writing stored procedures
- Clear, precise step-by-step directions to get up and running quickly
Book Details
Language : EnglishPaperback : 276 pages [ 235mm x 191mm ]
Release Date : May 2010
ISBN : 1847198902
ISBN 13 : 9781847198907
Author(s) : Aaron Cure
Topics and Technologies : All Books, Open Source
Table of Contents
Preface
Chapter 1: First Look
Chapter 2: Database Layout and Design
Chapter 3: A Touch of Class
Chapter 4: Data Cartography
Chapter 5: The Session Procession
Chapter 6: I'm a Logger
Chapter 7: Configuration
Chapter 8: Writing Queries
Chapter 9: Binding Data
Chapter 10: .NET Security
Chapter 11: It's a Generation Thing
Chapter 12: Odds and Ends
Appendix: Pop Quiz Answers
Index
Aaron Cure
I think this book is a good book for the beginning NHibernate user, both C# and VB.Net; you will learn a lot from it and you will have less frustrations than me to begin with. Read More
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Errata
- 4 submitted: last submission 09 Oct 2012Errata type: Code | Page number: 142
In Step 6, the return SessionFactory.OpenSession()Session; is not a valid syntax. It should be SessionFactory.OpenSession() as OpenSession returns an ISession, which is what is desired.
Errata type: Code | Page number: 88
cfg.AddAssembly(typeof(Address).AssemblyQualifiedName); Should be: cfg.AddAssembly(typeof(Address).Assembly);
Errata type: Code | Page number: 89
cfg.AddAssembly(GetType(Address).AssemblyQualifiedName) should be: cfg.AddAssembly(GetType(Address).Assembly)
Errata type:code Page No:25
The faulty method is private Type GetUnproxiedType() { return GetType(); } This method does not return an unproxied type. IMHO the method should look something like this: private Type GetUnproxiedType() { var proxy = this as INHibernateProxy; if (proxy != null) { return proxy.HibernateLazyInitializer.PersistentClass; } return GetType(); }
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- Use NHibernate to retrieve and store data in your database
- Develop an efficient, robust data access layer with little or no code
- Design or modify your database for high performance
- Connect to multiple databases or database backends with simple code
- Implement base classes to provide basic functionality for all database objects
- Improve the performance of your data retrieval methods with proven open source technology
- Make web applications faster using strong caching strategies such as memcached
- Simplify data storage and display using built-in .NET data controls with NHibernate
- Using NHibernate to control application security using Membership and Role providers and .NET security controls
NHibernate is an open source object-relational mapper, or simply put, a way to retrieve data from your database into standard .NET objects. Quite often we spend hours designing the database, only to go back and re-design a mechanism to access that data and then optimize that mechanism. This book will save you time on your project, providing all the information along with concrete examples about the use and optimization of NHibernate.
This book is an approachable, detailed introduction to the NHibernate object-relational mapper and how to integrate it with your .NET projects. If you're tired of writing stored procedures or maintaining inline SQL, this is the book for you.
Connecting to a database to retrieve data is a major part of nearly every project, from websites to desktop applications to distributed applications. Using the techniques presented in this book, you can access data in your own database with little or no code.
This book covers the use of NHibernate from a first glance at retrieving data and developing access layers to more advanced topics such as optimization and Security and Membership providers. It will show you how to connect to multiple databases and speed up your web applications using strong caching tools. We also discuss the use of third-party tools for code generation and other tricks to make your development smoother, quicker, and more effective.
This easy-to-follow guide will show you how to connect the NHibernate object-relational mapper to your projects to create a rich, efficient, object-oriented data access layer with little or no additional work
This is a beginner's guide to NHibernate that starts from ground zero. Successive chapters build upon earlier concepts, while the sample code presents various ways to accomplish typical data access tasks. Within a few chapters you have a running application using NHibernate to retrieve and store data.
We examine all of the topics required to get a functional data access layer implemented by writing the least amount of code possible, presenting options along the way to handle particular edge cases or situations as they arise.
When you have completed the various exercises you will have running data-bound desktop and web applications, as well as an understanding of how to implement NHibernate in your own applications.
This book is for new and seasoned developers of .NET web or desktop applications who want a better way to access database data. It is a basic introduction to NHibernate, with enough information to get a solid foundation in using NHibernate. Some advanced concepts are presented where appropriate to enhance functionality or in situations where they are commonly used.

