You are fighting the system... 2 thoughts:
- if you know you need the other data (nested
foreach
), why wouldn't you want to useLoadWith
? That is pretty-much the text-book use case - since you (from post) know that object tracking is required for lazy loading, why not just enable object tracking; data-contexts should usually be considered "units of work" (i.e. short-lived), so this isn't likely to hurt much in reality.
See the official replies here for why these two options (object tracking and deferred loading) are linked.
Marc Gravell
2009-04-01 09:09:46