When making changes using SubmitChanges()
, LINQ sometimes dies with a ChangeConflictException
exception with the error message Row not found or changed
, without any indication of either the row that has the conflict or the fields with changes that are in conflict, when another user has changed some data in that row.
Is there any way to determine which row has a conflict and which fields they occur in, and also is there a way of getting LINQ to ignore the issue and simply commit the data regardless?
Additionally, does anybody know whether this exception occurs when any data in the row has changed, or only when data has been changed in a field that LINQ is attempting to alter?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…