Of course I'm interested.
-Markus
2010/8/21 Dan Jasek dan...@jasek.org
I am not writing a web application. Many of my objects have an
arbitrary and long lifetime. Because of this, I am often working with
detached objects. IConversation won't work because the first level
cache will
Hi Dan
I had the same idea some time ago and experienced the same problems. In
theory it is possible to create a custom bytecode provider and collection
proxies to make lazy-loading work without SessionScope, yet it requires us
to use a custom built NHibernate.
But back to the original idea: Why
I have been looking into lazy loading and its session requirements.
I've come up with a solution for loading lazy objects outside of a
standard SessionScope. All that was needed was a custom ByteCode
where the Initialize method was wrapped in a little session management
code.
The code is here: