Sometimes back, I got irritated with Entity validation Errors while using Entity Framework.
Then I found a way to see the entity validation in Visual Studio by executing the below command in Immediate Window or Adding it to the Watch window.
((System.Data.Entity.Validation.DbEntityValidationException)$exception).EntityValidationErrors
Hope this helps someone !
No comments:
Post a Comment