Lazy loading and eager loading are two distinct methods for loading related entities in an object graph. The ORM will automatically send a query to the database to retrieve the pertinent data whenever you access a navigation property. Eager loading can be further customized using the method to load multiple levels of related entities.

2m read timeFrom dev.to
Post cover image
Table of contents
1. Lazy Loading:2. Eager Loading:

Sort: