Added Nhibernate code. Not finished yet.