The ________ extension method can be used to include related entities in a query result.
- Concat()
- Include()
- Join()
- SelectMany()
The correct answer is Include(). The Include() extension method is used to specify related entities to be included in the query result. It is commonly used to eagerly load navigation properties and retrieve related data along with the main entity.
Loading...
Related Quiz
- How can you revert to a previous migration in Entity Framework?
- How does Entity Framework manage thread safety in asynchronous operations?
- Given a complex data model, how would you write an efficient LINQ query to minimize database load?
- How do you map a stored procedure to a domain model in Entity Framework?
- How does Entity Framework handle transactions by default when SaveChanges() is called?