Oskar - thank you!

I never use the locals panel in the debugger and never considered that
as the cause of the problem. I should have of course as I have seen
this behaviour before when doing things like a quick watch on
entities.

Thanks for your help!

James

On Sep 22, 11:19 pm, Oskar Berggren <[email protected]> wrote:
> Make sure it's not your debugger asking for properties on p.... Such
> as in the "locals" panel.
>
> /Oskar
>
> 2010/9/22 James <[email protected]>:
>
> > Hi all,
>
> > I'm seeing some odd behaviour with session.Load<> and google isn't
> > helping me out today.
>
> > When I execute a query such as
>
> > Person p = session.Load<Person>(1);
>
> > After stepping over the above line in the debugger I would expect to
> > see nothing in SQL profiler as according to the NHibernate
> > documentation Load returns a proxy and only executes the fetch when
> > required vs Get which executes the fetch immediately. My problem is
> > that I can't seem to get Load to exhibit this behaviour as it always
> > executes the select straight away.
>
> > I'm happy to post a mapping file if that would help?
>
> > Any insights would be greatly appreciated!
>
> > Cheers,
>
> > James
>
> > --
> > 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 
> > athttp://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