Showing posts with label SaveChanges. Show all posts
Showing posts with label SaveChanges. Show all posts

Friday, April 3, 2020

Tracking queries in Entity Framework Core

Entities retrieved using Entity Framework Core LINQ queries have tracking enabled by default, this allows us to make changes to the entity and save them back to the database using SaveChanges. When we execute a query in Entity Framework Core the resultant object is stored in a cache which allows us to make changes and use the object to update the database.