NHibernate - good complete working Helper class for managing SessionFactory/Session

前端 未结 9 689
余生分开走
余生分开走 2020-12-07 14:37

can anyone provide/refer a proper OO type helper class for managing a singleton of the SessionFactory and then also for managing Sessions?

相关标签:
9条回答
  • 2020-12-07 15:35

    Two suggestions:

    • Jeffrey Palermo's HybridSessionBuilder (jeffreypalermo.com/blog/use-this-nhibernate-wrapper-to-keep-your-repository-classes-simple)
    • See the code examples (specifically see Session 13) in the Summer of NHibernate (www.summerofnhibernate.com)
    0 讨论(0)
  • 2020-12-07 15:39

    Thank you! This is helpful, but I'm looking for something that's a bit more robust.

    For example, referenced on the NH site (http://hibernate.org/363.html#A9) is a contribution made by Andrew Mayorov and he posts three files such as this (http://nhibernate.sourceforge.net/contrib/Wiki_AndrewMayorovAspNet.zip).

    Thing is that it doesn't come with much help. I'm not exactly sure how to make use of it properly. I tried some things, but ran into trouble.

    Anyone have something which uses this or similar?

    0 讨论(0)
  • 2020-12-07 15:39

    NHibernate Burrow looks promising. I just started using it and i'm having no issues to date.

    0 讨论(0)
提交回复
热议问题