The Inquisitive Coder – Davy Brion's Blog

Trying to walk that thin line between intelligence and ignorance

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 ;)

11 Responses to “What NHibernate Related Topics Would You Like To Read About?”

  1. Bart Reyserhove Says:

    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

  2. efdee Says:

    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 :-)

  3. Davy Brion Says:

    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

  4. Steve Degosserie Says:

    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

  5. Davy Brion Says:

    @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

  6. Steve Degosserie Says:

    - ‘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 / …).

  7. Davy Brion Says:

    ah, those are pretty interesting topics as well.. thx! :)

  8. Thomas Moerman Says:

    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 ;-)

  9. Davy Brion Says:

    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 :)

  10. Thomas Moerman Says:

    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.

  11. Davy Brion Says:

    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.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>