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 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.
