How to use nhibernate with ASP.NET 3.5 (not MVC)
-
19-08-2019 - |
Question
What is the best way to interop with NHibernate 2.0 and ASP.NET 3.5? How can I easily develop a CRUD application?
Is the ObjectDataSource the way to go?
Thank you.
Solution
You might find Rhino Commons a good option. It offers Repository<T> and UnitOfWorkApplication. Together these provide data gateway and session management in the context of a web application. Use with Castle.Service.Transaction to handle transactions transparently.
OTHER TIPS
you can watch screencasts at http://www.summerofnhibernate.com/ that will explain how to set up CRUD, and will shed some light on more advanced topics
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow