Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is explicit loading?
#1
By default, related objects (child objects) are not loaded automatically with its parent object until they are requested. To do so you have to use the load method on the related entity’s navigation property.

For example:

Code:
// Load the products related to a given category context.Entry(cat).Reference(p => p.Product).Load();

If lazy loading is disabled then it is still possible to lazily load related entities by explicit loading.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)