Difference between Lazy Loading and Eager Loading
Lazy/Deferred Loading
In case of lazy loading, related objects (child objects) are not loaded automatically with its parent object until they are requested.
By default LINQ supports lazy loading.
Eager loading
In case of eager loading, related objects (child objects) are loaded automatically with its parent object. To use Eager loading you need to use Include() method.
Lazy/Deferred Loading
In case of lazy loading, related objects (child objects) are not loaded automatically with its parent object until they are requested.
By default LINQ supports lazy loading.
Eager loading
In case of eager loading, related objects (child objects) are loaded automatically with its parent object. To use Eager loading you need to use Include() method.