To map the result of a SQL query to a non-entity type, the ________ method is often used in Entity Framework.

  • MapTo
  • FromSql
  • ToList
  • Select
The correct option is "Select." In Entity Framework, the Select method is commonly used to shape the result of a SQL query into a non-entity type. It allows you to project the desired columns and transform them as needed.
Add your answer
Loading...

Leave a comment

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