What is the relationship between the various validation attributes & components? #50905
Unanswered
DavidThielen
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all;
So we have as various validating components:
The above all work as:
And in the code behind:
And then in
ProfilePageModel
there isValidateComplexType
.How do these all work together? And where is it documented? I can't find anything on
ObjectGraphDataAnnotationsValidator
orValidateComplexType
and there's minimal on the rest. Basically all of us are using random combinations of all this, posting what sort-of works, and then others then follow that hoping it will wotk for them now, and in future Blazor releases.The biggest questions are:
HasAddress
on one page and if that is false, then noAddress
validation.thanks - dave
Beta Was this translation helpful? Give feedback.
All reactions