It would be preferable to disable lazy loading by default and instead specify the time at which you wish to load the additional data. EF is configured to support Eager loading using the. Lazy loading can become confusing if you start turning it on and off for different functions. If you feel the need to turn it off, it's best to just turn it off an...
When you use lazy loading, it loads the value when you try to access
that object. You can use foreach loop for this purpose like shown
below : ... var foos = context.Foos.ToList();
foreach (var Foo in foos )
var result = Foo.Id; //This should load the value now