1.

What do you mean by lazy loading, eager loading and explicit loading?

Answer»
  • Lazy Loading: This process delays the loading of related objects until they are needed. During lazy loading, only the objects needed by the user are returned, whereas all other related objects are only returned when needed.
  • Eager Loading: This process occurs when you query for an object and all of its related objects are returned as well. Aside from that, all related objects will load with the parent object automatically. When the INCLUDE method is used, eager loading can be achieved in EF6.
  • Explicit Loading: Explicit loading occurs only when lazy loading is desired, EVEN when lazy loading is DISABLED. We must explicitly CALL the RELEVANT load method on the related entities to process explicit loading. When the Load method is used, explicit loading can be achieved in EF6.


Discussion

No Comment Found