Even if the result type of the query isn’t an entity type, if the
result contains entity types they will still be tracked by default
Example :
In the following query, which returns an anonymous type, the
instances of Book in the result set will be tracked
using (var context = new BookC...