When saving changes with SaveChanges
on a data context is there a way to determine which Entity causes an error? For example, sometimes I\'ll forget to assign a da
One option is to handle the ObjectContext.SavingChanges Event, which gives you a chance to perform validation on entities before the changes are saved and even cancel the save if necessary. This way you can make sure any non-nullable properties are set before trying to save changes, and avoid having to rely on exception handling.