What is required to map a query to a non-entity type in Entity Framework?

  • DbQuery
  • DbSet
  • DbFunction
  • DbSqlQuery
The correct option is Option 1: DbQuery. To map a query to a non-entity type in Entity Framework, you need to use the DbQuery class. DbQuery represents a LINQ to Entities query that returns non-entity types, such as primitive types or anonymous types.
Add your answer
Loading...

Leave a comment

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