I'm taking data from an xml file and when using the entity framework to add that data to my database I'm getting a System.Data.UpdateException. It is caused by a primary key violation, which for the data I'm entering is possible. I'm handling the exception and moving on but I would like to know how to see specifically what PK was in violation.
Any suggestions?
Thanks