.net - how to get object that triggered constraint violation in entity framework -


Here is the situation:

We think that we have the table A

Now we do the following:

  1. Load more than 1 record from that table
  2. to violate some obstacles Change some items
  3. Save in context changelog.

We will get SqlException which will say that some obstacles

Question - can we obtain the object that is To be violated (user to show E-TC favorable message)

Thanks in advance


Comments