May 28, 2021 03:39 PM|mgebhard|LINK
I recommend making the save logic more efficient. Use LINQ to return a collection of Programa_Cor_Info_Status.
var statuses = db.Programa_Cor_Info_Status.Where(x => x.ID_Programa == iiii)
Loop over the Programa_Cor_Info_Status collection and set the properties to what ever you like. Then it is just one save.
However, this might not fix the concurrency error. The error is telling you that the database record changed between the time you pulled the record and attempted the change. I assume there are other issues with the code. The the initial save might have
worked or you're working with the same record. Use the debugger to figure out where the bug(s) are in your logic.