h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Difference between Lazy Loading and Eager Loading

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.