Created
September 2, 2015 14:21
-
-
Save malkitsingh/5843797d3d852c6180dd to your computer and use it in GitHub Desktop.
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
Validation failed for one or more entities. See 'EntityValidationErrors' property for more details. | |
catch (DbEntityValidationException ex) | |
{ | |
foreach (var validationErrors in ex.EntityValidationErrors) | |
{ | |
foreach (var validationError in validationErrors.ValidationErrors) | |
{ | |
Trace.TraceInformation("Property: {0} Error: {1}", | |
validationError.PropertyName, | |
validationError.ErrorMessage); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment