NHibernate isn't magic. It can't change an object's type. Eager loading may
work, but you should really make your code work with proxies.

Jason

On Mon, Jun 14, 2010 at 4:44 AM, Nieve <[email protected]> wrote:

> Hello all,
> I've been having this issue with a proxy I can't seem to initialize..
> Problem is When I GetAll of MyEntity, the first entity comes up as a
> proxy and after calling NHibernateUtil.Initialize(entity) on it, it
> stays of type proxy, and I need to have the proper type, not the
> proxy. Any ideas what I'm doing wrong here? Do I need to find where is
> it loaded as proxy and eager load it or is there another way?
>
> Thanks,
> Nieve
>
> --
> 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