Temptica
✅ Urgent | Cannot update property in EF because another instance with the same key is being tracked
I really never saw them before. But imagine school actually explaining some USEFULL stuff 😄 altho I didn't see it while doing research so that's also on me
43 replies
✅ Urgent | Cannot update property in EF because another instance with the same key is being tracked
foreach (var b in request.Notification.ChangedBatches)
{
await _uow.BatchRepository.UpdateBatchStatus(b.BatchId, Status.AwaitConfirmation);
}
I do await it, I did use async task etc so yeah, no clue
43 replies
✅ Urgent | Cannot update property in EF because another instance with the same key is being tracked
Okay that was stupidly easy and I somehow never came across this solution on the internet, Even AI didn't suggest it. I don't understand how people trust AI soo much with their code but oh well, you're a legend for helping me out
43 replies