Thanx for replying, but my problem is as follows.: >From my WinService I call another DLL (which is actually executing the queries to DB - through AR- ) this Dll in turn, calls the AR project.
I included the AR entries in the winservice's appconfig. Do I need to initialize AR in all my dlls? Slts ----- Original Message ----- From: "Markus Zywitza" <[email protected]> To: <[email protected]> Sent: Tuesday, May 19, 2009 10:57 AM Subject: Re: Lazy Loading Problem // Service wakes up // All code is executed in one go (speak "Unit of Work") using (new SessionScope()) { var entities= Entity.FindAll(); //doing this and that newEntity.Save(); //... } // now all changes are put to the database // service goes into sleep mode again 2009/5/19 Cesar Sanz <[email protected]>: > I am new in this, can you please explain it more clearly, where can I see > and example of this? > > Thanx in advance. > > ----- Original Message ----- > From: Germán Schuager > To: [email protected] > Sent: Tuesday, May 19, 2009 10:21 AM > Subject: Re: Lazy Loading Problem > You should adapt your session management strategy to the funcionality of > your service. > > > On Tue, May 19, 2009 at 1:08 PM, Cesar Sanz <[email protected]> > wrote: >> >> Hello, >> >> I am having troubles with a winservice program. >> >> I have an ActiveRecord project (a separate dll) that is used for two >> other >> projets, a web app and a win service. >> >> In the web applicacion I can correctly utilize the LazyLoading feature >> because I open a session on every request, >> but in the WinService application, I cannot do that, and I'm getting an >> exception for this. >> >> How can I solve this problem? >> >> Regards >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
