Editorial question88.5K views4,642 votes0 answers1,399 following
AI-generatedLazy proxy initialization fails after entity detachment in NHibernate
Detached entity proxy access NHibernate creates uninitialized proxies for lazy-loaded associations. When the owning entity is still associated with an open session, accessing a proxy member triggers a SELECT to load the related data. The behavior changes once the entity becomes detached—either through session closure, eviction, or serialization. Uncertain in