To project a query result into a custom DTO (Data Transfer Object), you would typically use the ________ method in LINQ.
- Select
- Project
- Transform
- Map
The correct option is "Project". The Project method in LINQ is commonly used for projection, allowing you to shape the query result into a custom DTO or anonymous type. This method selects specific fields or properties from the source data, transforming it into the desired structure.
Loading...
Related Quiz
- How does Entity Framework support transactions across multiple business operations in a layered architecture?
- To execute a stored procedure that returns a set of entities, use the ________ method in Entity Framework.
- In a cloud-hosted environment, Entity Framework can be optimized for performance using ________ services.
- Consider a web application that experiences high traffic. How can asynchronous programming with Entity Framework improve scalability and response times?
- How does Entity Framework manage caching to optimize performance in a distributed architecture?