What type of loading in Entity Framework loads related data as part of the initial query?

  • Deferred Loading
  • Eager Loading
  • Explicit Loading
  • Lazy Loading
Eager loading in Entity Framework loads related data as part of the initial query, meaning it retrieves the main entity along with its related entities in a single database query. This can be beneficial when you know upfront that you will need the related data. However, it can lead to performance issues if there are a large number of related entities.
Add your answer
Loading...

Leave a comment

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