The use of ___________ can help in caching query results and improving query performance.

  • AsNoTracking()
  • FirstOrDefault()
  • Include()
  • ToList()
The correct answer is AsNoTracking(). By using AsNoTracking(), Entity Framework Core does not keep track of the entities retrieved from the database, which can help in caching query results and improving query performance, especially in read-only scenarios where entities are not modified.
Add your answer
Loading...

Leave a comment

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