If the db.SubmitChanges failed for whatever reason, I want to return a failed message.
DO I just catch the error or does the ConflictMode help here?
If the db.SubmitChanges failed for whatever reason, I want to return a failed message.
DO I just catch the error or does the ConflictMode help here?
The FailOnFirstConflict specifies that attempts to update the database should stop immediately. ContinueOnConflict specifies that all updates to the database should be tried.
The latter may lead to inconsistent results, depending on the type of save/update you are performing.
So unless this is not relevant to you, simply return the first error by using FailOnFirstConflict.