Updating a property and saving it to DB (EF Core)
I have a List of objects that I queried from my db context. I’m trying to change one property on it, such as:
responses.ForEach(r => r.Status = “Done”);
Then I’m calling _db.SaveChanges();
I’m not seeing the status updated in the database, am I doing something wrong?
responses.ForEach(r => r.Status = “Done”);
Then I’m calling _db.SaveChanges();
I’m not seeing the status updated in the database, am I doing something wrong?