For projecting related entities, the ________ method can be combined with Select to shape the data.

  • Include
  • Join
  • Project
  • IncludeWith
The correct option is "Include". In Entity Framework, the Include method is commonly used to eagerly load related entities along with the main entity. This is often used to avoid the N+1 query problem and to improve performance by reducing the number of database round-trips. The Select method, when combined with Include, allows for shaping the data by selecting specific properties from related entities.
Add your answer
Loading...

Leave a comment

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