What NHibernate Related Topics Would You Like To Read About?
Posted by Davy Brion on October 12th, 2008
I currently have the following NHibernate related topics on my list of posts to write:
1) Exploring NHibernate Statistics
2) Getting Up To Speed With The Second Level Cache
3) Using NHibernate’s Stateless Sessions Instead Of Regular Sessions
I might also write something about NHibernate’s Event Listeners…
So anyways, what would you like to learn more about? If you have some suggestions, be sure to leave a comment and i might write a post about it.
Obviously, i can’t promise these posts in a certain time frame, but the interesting ones will be written sooner or later

October 12th, 2008 at 8:03 pm
They all seem very interesting to me. My preferred order would be:
Exploring NHibernate Statistics
Using NHibernate’s Stateless Sessions Instead Of Regular Sessions
Getting Up To Speed With The Second Level Cache
October 13th, 2008 at 1:24 pm
NHibernate Statistics sounds pretty interesting, as does the idea of Stateless Sessions if they fix what I hope they’d fix. In fact, all three of them are pretty interesting subjects. Take your time
October 13th, 2008 at 1:25 pm
don’t expect too much from the statistics thing though… it’s a nice-to-have feature during development/debugging but it’s nothing earth-shattering :p
October 13th, 2008 at 2:54 pm
Advanced topics like:
- Dynamic Filters
- Custom Property Accessors
- Component & Dynamic Component mappings
- Transaction & concurrency management
- Result Transformers
- User Types
- NHibernate in a 3-tiers scenario (updating modified detached objects)
- NHibernate & Ado.Net Data Services
- NHibernate & Linq
October 13th, 2008 at 2:58 pm
@Steve
some interesting stuff… but could you expand a bit on what you mean with dynamic filters and custom property accessors? If you mean dynamic criteria, there are a lot of examples for that already available
October 13th, 2008 at 3:17 pm
- ‘Dynamic’ Filters : http://www.hibernate.org/hib_docs/nhibernate/1.2/reference/en/html/filters.html
Usefull to dynamically filter data based on contextual information (e.g. current user). You just need to define parameterized filters in the mapping and enable the filter when opening the session:
session.EnableFilter(filterName).SetParameter(name, value)
- Custom Property Accessors : custom implementations of IPropertyAccessor / IGetter / ISetter interfaces. Very usefull when you need to map completely different data structures (Entity / Database), when dealing with a legacy database and a redesigned domain model for example. You just need to reference your custom property accessor in the ‘access’ tag of the mapping files (property / relation / …).
October 13th, 2008 at 4:21 pm
ah, those are pretty interesting topics as well.. thx!
October 20th, 2008 at 12:57 pm
A comparison that interests me is Linq vs. NHibernate. As far as I know, these are two top choices for persistence layer technologies in .NET apps (not taking ADO.NET into account)?
I’m also quite interested in a discussion regarding stateless sessions. Especially the why, not the what
October 20th, 2008 at 1:00 pm
LINQ is nothing more than a language integrated feature to query data… that data could come from pretty much any source… in fact, LINQ To NHibernate is scheduled for the 2.1 release
you probably meant LINQ To SQL, or Entity Framework
October 20th, 2008 at 1:17 pm
I see. Admittedly I haven’t read up on Linq yet (Java guy speaking
), I expected it to be Microsoft’s ORM-like solution for persistence.
October 20th, 2008 at 1:25 pm
heh… a lot of .NET developers don’t really seem to be able to distinguish between LINQ (the language feature) and LINQ To SQL or Entity Framework either
But i probably won’t compare NHibernate to either of them… i have zero interest in LINQ To Sql because i think it will ultimately be neglected (or even dropped) by Microsoft to increase adoption of Entity Framework, and Entity Framework is probably a version or 2 removed from being an option worth considering.