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


Messages In This Thread
What is explicit loading? - by beingchinmay - 03-23-2017, 12:58 PM
RE: What is explicit loading? - by RH-Calvin - 07-15-2020, 11:59 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)