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.
Add your answer
Loading...

Leave a comment

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