to complete the José answer... when you read "view-model" here, almost all people, mean : statefull view model (each property has its own state and not a forward to the domain-model property)
On Wed, Oct 6, 2010 at 3:02 PM, José F. Romaniello <[email protected]>wrote: > When do you open/close the session? take care if you are doing as an action > filter instead in beginrequest/endrequest. > You shouldn't feed your views with uninitialized objects. I prefer to use > viewmodels in the view instead of real entities. > > > 2010/10/6 Thiago Alves <[email protected]> > > I'd like to ask one more question on this topic: >> >> Although I'm using the session-per-request pattern, sometimes I get >> LazyInitialization exception when a View tries to read lazy loaded >> collections. This problem occurs only in some situations. Sometimes I'm able >> to read the collections from the view without getting the exception. >> >> Any suggestions? >> >> Regards, >> Thiago >> >> -- >> You received this message because you are subscribed to the Google Groups >> "nhusers" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<nhusers%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/nhusers?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en.
