If you don't want lazy loading to happen, use a Presentation Model and copy
everything there instead.
In any case, NHibernateUtil.Initialize loads the specified proxy or
collection, you could just use it on all the properties that need it.
Diego
On Sat, Jul 24, 2010 at 13:05, alexey_baranov <[email protected]> wrote:
> Hi!
>
> I need to load all association and collections of persisted object
> preparing them for rendering in View.
> I do not want to do this using mappings, because loading collections
> and associations doesn't need in other times.
> Manual loading are bad too because I do not know what type of object
> bring to the view at compile time. Only at runtime.
>
> I'm looking something like
>
> sess.Refresh(obj);
> sess.LoadAssociationAndCollection(obj); //NEED THIS FUNCTION
> view.model= obj;
>
> Thanks!
>
> --
> 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.