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.
Loading...
Related Quiz
- Handling data conflicts in ADO.NET involves strategies like ___________ resolution and ___________ resolution.
- To optimize LINQ to Entities queries, consider using the ___________ method to specify what data to include in the result set.
- When using the UPDATE command, you typically specify a ___________ clause to identify the rows to be updated.
- What is the role of the Entity Framework Designer in LINQ to Entities?
- When might you use the ToTable() method on a DataView in ADO.NET?