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.
14 replies