In a projection query, using ________ can help in optimizing the SQL queries generated by Entity Framework.

  • Lazy Loading
  • Eager Loading
  • Explicit Loading
  • Deferred Execution
The correct option is "Deferred Execution". Deferred execution means that the query is not executed until the query result is enumerated or iterated over. In Entity Framework, using deferred execution in projection queries can help in optimizing SQL queries by delaying the execution until necessary, allowing Entity Framework to optimize the generated SQL based on the complete query. This can lead to more efficient SQL queries and better performance.
Add your answer
Loading...

Leave a comment

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