Recommended NHibernate new book: NHibernate 3.0 cookbook[DOWNLOAD]

Source: Internet
Author: User

Recent NHibernate

At present, it is difficult for us to have a complete grasp of the whole nhibernate technology system. The reason is that the official documents are not complete, and there are few books on NHibernate. NHibernate 3.0 Cookbook This book can be considered to make up for the NHibernate document a lot of blank.

There is very few information at home. It can even be said to be blank. But from this year's official statistics of nhibernate downloads, China Incredibly is the world's first, accounting for 24%, up to 40,000, from such a large number, do not know how many people really put nhibernate use of "flexible", this is indeed an unknown.

This book outlines

In all its content, this book covers almost all of the NHibernate 3 version, and basically has an overall grasp of nhibernate:

  • NHibernate Function Introduction
    • Mapping
    • Configuration
    • Query
    • Test
    • Extending
  • NHibernate Contribution Project Introduction
  • Best practices in various environments (ASP. NET MVC, ASP. NET, WPF, WinForms)

The technology we use now has a more comprehensive introduction to this book.

Each chapter is written in a real-world way, with basically four steps:

    1. Preparation (Getting Ready): Prepare the entity for this knowledge point.
    2. how it is implemented (how to do it ...) : Perform the actual code completion function.
    3. Analysis Principles (how it works ...) : Describes in detail why this is done and why.
    4. Necessary extensions (there ' s more ...) : This knowledge point is appropriately extended.

You've basically got a clear grasp of this verse after it's done. And you can read the actual operation of the source code to see the results.

This book analyzes

First chapter: Models and Mappings

This book takes the mapping as the starting point, and introduces three kinds of mapping methods: XML, Fluent, ConfORM. Then analyze some map instances: class inheritance mappings, one-to-many mappings, version mappings, enumeration mappings, component mappings. This chapter is basically familiar with mapping, but there are some things that are not covered, such as database Objects (databaseobjects), filter definitions (filterdefinitions), result sets (resultsets), type definitions ( TypeDefinitions) and so on.

Chapter II: Configuration and Schema

We use NHibernate, we must first configure NH. This chapter uses the App. Config, Hibernate.cfg.xml, loquacious, FLUENTNH to configure NHibernate, and uses the NHibernate Schema Generation tool to create the database schema. This chapter is essential to the basic content, often a lot of beginners here, I would like to see this chapter is completely clear.

Chapter III: Sessions and Transactions

Personally think this chapter is the best, introduced the session interface and several session strategy, the example of ASP. NET Web Forms and ASP. NET MVC program in the session per Web request policy application and extend it.

The fourth chapter: Queries

All queries in the NHibernate3 version should be in 7 ways: HQL (nhibernate Query language), criteria (conditional query), Queryover (lambda expression query), LINQ (language-Integrated query), H-sql ( NHibernate specific SQL queries), SQL (native SQL query), custom DSL (Customize a domain-specific language query). However, in this chapter, the author introduces several common types. Each of these queries is a practical example.

The fifth chapter: Testing

The author writes a test environment and introduces NHibernate Profiler, SQLite, and ghosting. Recommended use of these can effectively improve productivity.

Sixth chapter: Data Access Layer

In our program, the NH related query code is written in the data access layer, the author in this chapter describes the various types of queries and explains the application of several modes (Repository, LINQ specifications) in the data access layer.

Seventh chapter: Extending NHibernate

Extended NHibernate, this is more advanced, but is essential in enterprise applications. Several of the extensions introduced by the author in this chapter are quite practical.

Eighth chapter: NHibernate Contribution Projects

This chapter introduces the NHibernate contribution project and has a reference for our use of these contributions.

Finally, the author unifies the ASP. NET MVC, ASP. NET, WPF, WinForms environment to the whole book content to organize a study, application thought.

Recommended links

Finally feel that this book should be recommended to all nhibernate developers. You can certainly learn a lot of things you don't know from this book. If some companies use NHibernate, it is recommended to purchase a physical book as the reference books on hand. Later I will also combine the content of this book with appropriate additions to write a blog. Of course, you've read this book.

Title: NHibernate 3.0 Cookbook

Jason Dentler

Purchase Address: Https://www.packtpub.com/nhibernate-3-0-cookbook/book

Publisher: Packt Publishing

Local download available (November 6, 2010 22 o'clock Update): Packtpub.nhibernate.3.0.cookbook.oct.2010.zip

Copyright NOTICE: This article for Bo Master http://www.zuiniusn.com original article, without Bo Master permission not reproduced.

Recommended NHibernate new book: NHibernate 3.0 cookbook[DOWNLOAD]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.