Hi, Everyone, I am using castleactiverecord in Web Project. And I am having headache with the famous Lazy Loading error:
Initializing[User#2]-failed to lazily initialize a collection of role: User.HostingActivities, no session or session was closed I did search through stackoverflow and found that there're two solutions: 1. Implement a ThreadScopeInfo of my own. from blog "The Darksid": http://tinyurl.com/3mscdw4 -- but this seems not suitable for Web app. 2. using ISession.Lock() to reattach the object, before calling any Lazy Load Property. -- this is fine if I manually do that every time. is there a central solution for this in Web app? That means I don't need to do ISession.Lock() everytime when using Lazy Load properties? Because I am also using other libraries and they will also sometimes call lazy load property and I could not modify all the places of the code in libraries. Need help. Thanks! Regards. Larry -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
