© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
21 replies
Natty

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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Not mapping an EF Core DB-First enum property
C#CC# / help
3y ago
updating a MySQL database from EF Core
C#CC# / help
15mo ago
EF Core Model not-required property
C#CC# / help
4y ago