Brainiac V
❔ Entity framework, tracking same Id multiple times. Need help
But the real problem here seems to be, that you first fetch existing items without tracking by EF Core, then you modify them, then you attach them to the context and change the state. The issue is probably that at the moment in your application you already have that item tracked by EF Core and that then causes issues.
44 replies