To improve query performance in Entity Framework, you can use ___________ loading to retrieve related entities in a single query.

  • Deferred
  • Dynamic
  • Eager
  • Lazy
Eager loading allows Entity Framework to load related entities along with the main entity in a single query, thus reducing the number of database round-trips and improving performance. It eagerly loads the related entities as part of the initial query execution. It's suitable for scenarios where you know in advance that you will need the related entities.
Add your answer
Loading...

Leave a comment

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