Try
Catch ex As System.Data.Entity.Validation.DbEntityValidationException
For Each eve In ex.EntityValidationErrors
For Each e In eve.ValidationErrors
MsgBox(e.PropertyName & e.ErrorMessage)
Next
Next
End Try
Try
Catch ex As System.Data.Entity.Validation.DbEntityValidationException
For Each eve In ex.EntityValidationErrors
For Each e In eve.ValidationErrors
MsgBox(e.PropertyName & e.ErrorMessage)
Next
Next
End Try