Speaking at Richmond Code Camp on NHibernate
by bhartsock on Aug.31, 2009, under Uncategorized
On October 3rd, I encourage anyone who wants to learn about NHibernate to come to Richmond Code Camp. I will be giving a 100 level talk describing how to get started using it, and what it really is.
My initial idea is to create a fairly simple ASP.NET MVC application without persistence (use in memory Lists). And, in an hour, make it 100% persisted with transactions, lazy loading, etc. I am a little concerned it will be hard to teach NHibernate and get it done in an hour, but I am going to go for it. My goal is to touch on session factories, sessions, simple XML mapping, attribute mapping, inheritance relationships, associative relationships, criteria queries, HQL queries, and lazy loading. If I get through all that, I’ll throw in some custom types and maybe some fluent NHibernate since I have never used it but have wanted a reason to.
Any suggestions on things to show or things not to show?
August 31st, 2009 on 5:06 pm
I think XML mappings will be a huge turn off.. Fluent NHibernate will amaze. I would just not even show any XML, but make a note that there are still some relationships Fluent can’t express, but IMHO if your project has one of those, maybe it’s not designed correctly to begin with
August 31st, 2009 on 8:20 pm
Try, but it is the foundation of Hibernate/NHibernate, so I feel I need to at least slightly go over it.