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].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to