To improve performance, you can use ___________ in LINQ to Entities to reduce the amount of data retrieved from the database.

  • Lazy Loading
  • Eager Loading
  • Deferred Execution
  • Query Optimization
The correct option is "Eager Loading". In LINQ to Entities, eager loading is used to fetch related data along with the main query to reduce the number of database round-trips. It retrieves the main entity as well as its related entities in a single query, which can improve performance by reducing the amount of data retrieved from the database. Eager loading helps in optimizing queries and reducing the overhead of lazy loading or multiple round-trips to the database.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *