Created
May 30, 2016 10:13
-
-
Save gexplorer/fca714bec48bd1bb2dc841976b5f23f8 to your computer and use it in GitHub Desktop.
Catch DbEntityValidationException
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ex.EntityValidationErrors | |
.SelectMany(result => result.ValidationErrors) | |
.ForEach(error => Console.WriteLine(error.PropertyName + @" : " + error.ErrorMessage)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment