Friday, February 22, 2013

More on NHibernate

I've done more research and discovered that NHibernate is normally used to store persistent data in a database.  The idea is that a programmer can define the structure used by an object and an associated table in a database and NHibernate will handle the CRUD (Create, Read, Update, Delete) commands.  I'm not sure I'll have the time to research this subject much further since my projects already have a defined database tables and objects.  Also, most of the data my company stores isn't directly mapped to an object.  However, as I mentioned in an earlier post, I always research new techniques and technologies.  I'll be filing this away for possible use in a future project.

Also, I wanted to know where the name "NHibernate" came from, so I looked it up (thanks wiki).  The "N" in NHibernate is for Dot-Net.  The original product was called Hibernate and was designed for Java.  Hibernate is an apt description for how the data behaves.  Basically, web data stored in objects in memory "hibernate" in the database until the user returns to the web page and the data is re-read.

There are two books that I came across that look interesting if you want to learn more about this subject.  I went to Amazon and flipped through the "Look Inside" and I like what I see.  When I catch up on my other reading, I might dive into this subject a little deeper.

The first one is this one:


NHibernate 3 Beginner's Guide

The second book is this one:



NHibernate 3.0 Cookbook

If anybody has read these books, feel free to post your impression in the comments and I'll update this post with your information.