© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
13 replies
Harry

Entity Framework Tracking not making changes to db

hoping someone can explain what im doing wrong

i have a method that fetches all entities that i need into a list<entity>

this data is then returned to a variable in my business logic layer

then i loop over those entities perform an action for each of those pieces of data

after doing that call another repo method that sets a processed flag to true and saves changes

doing this when i would save changes, I would get an error about the entity already being tracked when making the update, or it would go through and no change would be made.

I hope thats enough context for someone to atleast have an idea of what might be going on.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Entity Framework DbContextOptionsBuilder.UseSqlServer() missing definition
C#CC# / help
4y ago
Entity Framework Core DB issues [Answered]
C#CC# / help
4y ago
Entity framework
C#CC# / help
14mo ago
❔ Entity Framework
C#CC# / help
3y ago