I need some advice: I would like do decouple nHibernate dependencies in the Presentation and Business Logic layers in order to have only the Data Access Logic layer referencing the nHibernate DLLs.
I only see solutions using SessionHelper/SessionManager objects and all being created used at the top layer. I beleave a better solution must exist.
What design pattern should I follow ? Can I wncapsulate the session (manager, helper, etc) in the repository pattern and easily change the ORM without forcing changes at the Business Logic layer ?
A code sample would be appreciated. Thanks in advance.