I was going through nHibernate Helper Class question on SO... I would like to get a helper class 开发者_StackOverflowfor fluent nHibernate
... can anyone provide/refer a proper OO type helper class for managing a singleton of the SessionFactory and then also for managing Sessions?
Fluent NHibernate is only a layer on top of NHibernate's mapping API, allowing the programmer to map entities using code and conventions instead of XML or attributes. It has no relation to NHibernate's sessions.
Most of the code for NHibernate (including helpers for session factories and sessions) applies to Fluent NHibernate as well.
精彩评论