2

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 1

1

Use FluentValidation
Read Steve Sanderson's Blog : Integrating FluentValidation with Blazor
And Chris Sainty's article : Using FluentValidation for Forms Validation in Blazor

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks! I will be checking this solution, but the look is good right now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.