How I can implement validation to my model, but not use attributes in this class, because, this class has some behavior of dependency on how to fill properties.
For example, if property IsDropDown is true, I must validate only DropDownValue else I must validate other properties.
1 Answer
Use FluentValidation
Read Steve Sanderson's Blog : Integrating FluentValidation with Blazor
And Chris Sainty's article : Using FluentValidation for Forms Validation in Blazor
1 Comment
dev
Thanks! I will be checking this solution, but the look is good right now.