Posts by Ari Maximiano • 26 points
1 post
-
1
votes3
answers35
viewsA: Instance of a certain type cannot be traced because another instance with the same key value for {'ID'} is already being tracked
Try inserting the following into your context constructor: public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options) : base(options) { ChangeTracker.QueryTrackingBehavior =…