NHibernate 3 Beginners Guide

I am heading towards another mile stone in my life. Later this year my first book will be published. I have always wanted to write a book but never had a topic that is at the same time interesting for me and also of relevance to a publisher. After having reviewed my first book lately, the publisher approached me whether I am not interested in writing a book myself. Happily I accepted this proposal. The book is about NHibernate, a topic which is very familiar to me as most of your readers might know. I have been writing a lot of posts about NHibernate in the past, mostly on the NHibernate FAQ blog and also posted some articles and tutorials on the NHibernate home page and on DotNetSlackers Web Site.

The title of the book is “NHibernate 3 Beginner Guide” and it will be published by Packt Publishing. As the title tells it is an introduction to the most recent version of NHibernate. But in contrast to other books that have been written about NHibernate so far I want to address the topic in a little bit different way. My goal is to introduce this ORM framework by using a model centric view and not a data centric view. Consequently NHibernate is used to map the model to a data store and the details of the data store (although important) do not play the same central role as in many other texts.

As the book is an introduction to NHibernate I want to provide the reader a friction-less approach to how to use this ORM framework. In the spirit of this I will discuss topics as mapping entities to tables or configuring NHibernate mostly by using convention based approaches (e.g. ConfORM, Auto-mapping with Fluent NHibernate) or by using fluent APIs. XML based configuration and mapping will also be discussed, but only as “one” way to do things and not “the” way to do it.

Luckily ,while writing the book, I can leverage all the positive and negative experiences we’ve had in our day to day work with NHibernate. That led me to the conclusion that I absolutely have to add a chapter about “how you can screw up things with NHibernate…”. Of course, the title of the chapter will be different, but it will be fun.

At the time of writing I have already finished the first 3 chapters and “only” 8 chapters are left. Stay tuned…

About Gabriel Schenker

Gabriel N. Schenker started his career as a physicist. Following his passion and interest in stars and the universe he chose to write his Ph.D. thesis in astrophysics. Soon after this he dedicated all his time to his second passion, writing and architecting software. Gabriel has since been working for over 25 years as a consultant, software architect, trainer, and mentor mainly on the .NET platform. He is currently working as senior software architect at Alien Vault in Austin, Texas. Gabriel is passionate about software development and tries to make the life of developers easier by providing guidelines and frameworks to reduce friction in the software development process. Gabriel is married and father of four children and during his spare time likes hiking in the mountains, cooking and reading.
This entry was posted in book, introduction, NHibernate. Bookmark the permalink. Follow any comments here with the RSS feed for this post.
  • Zac

    Great, really looking forward to this book. Be great to have an nhib book that properly covers fluent nhib. Seeing as you are doing a model centric approach it would be nice if you included something on automatic schema generation.

  • Alexander Nyquist

    I’m sure you will do a great job on this book, your articles are awsome. Are you going to discuss thread safety, session management and session lifetime w/o IOC containers in your book? I found that’s where most people give up on NHibernate when they don’t grasp it (did so myself a time ago).

  • Alper

    Congrats Gabriel. You have an excellent track record of explaining complex concepts. I’m confident that it will be a great book. Looking forward to it.

  • Very cool! We need more books like this.

  • Lee Brandt

    This sounds great. Will be glad to see someone approach an ORM from a Model-Centric position and not the Data-Centric one. Will definitely be ordering a copy when published.

  • Congratulations! I’m glad you’re writing from a model-centric approach. I’m looking forward to reading the book.

  • xiao

    any idea when the book will be released?

  • Will probably be published this summer (2011)

  • any update on the book?

    • Anonymous

      I am currently writing the 1st draft of the last chapter of the book. It is due next weekend. Please be patient :)

      • awesome! would be keen to get in on any EAP type program if the publisher supports it

  • Sxlin

    When will the book be pulished? especially in UK. Because it is different date in amazon uk and US. It is past the UK pulish date as on 2 Aug 2011.

    • Anonymous

      Unfortunately I have no information about the exact release data of the book. But it can’t be long since I am busily doing the reviews of the (pre-) final edits of all chapters.