Scenario: You want to optimize a LINQ to Entities query to minimize the number of database round-trips. What technique or method can you use for this purpose?

  • Eager Loading
  • Lazy Loading
  • Explicit Loading
  • AsNoTracking
The correct option is 1. Eager Loading is a technique used in LINQ to Entities to optimize queries by retrieving related data along with the main query results in a single database round-trip. It preloads related entities in advance, reducing subsequent database calls and improving performance.
Add your answer
Loading...

Leave a comment

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