-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify docs around ValidatingModelBase.GetErrors(null)
#129
Comments
Do you have any entity-level errors? This sounds a lot like #119 |
Damn, I have same misleading understanding as in #119 |
No problem! That's probably a sign that I should update the docs. Leaving this open as a reminder |
canton7
changed the title
GetErrors doesn't return entity-level errors
Clarify docs around May 6, 2020
ValidatingModelBase.GetErrors(null)
No. I'd accept a PR which added this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Method ValidatingModelBase.GetErrors(string propertyName) supposed to return entity-level errors if propertyName is null or string.empty (as it said in description):
<param name="propertyName">The name of the property to retrieve validation errors for; or null or System.String.Empty, to retrieve entity-level errors.</param>
However, it's always returns null if no propertyName is set.
The text was updated successfully, but these errors were encountered: