dotnetcore / BootstrapBlazor

A set of enterprise-class UI components based on Bootstrap and Blazor
https://www.blazor.zone
Apache License 2.0
2.45k stars 294 forks source link

chore(): (ValidationForm) integrate with Fluent Validation without using DataAnnotations #4490

Open NabaviFard-Mahdi opened 5 hours ago

NabaviFard-Mahdi commented 5 hours ago

Which class is this unit test associated with?

How to integrate with Fluent Validation. Without using DataAnnotations and using complex validations? I use :

 <FluentValidationValidator Validator="@ModelValidator" @ref="_fluentValidationValidator" />
 <ValidationSummary Model="@ModelDto" />
 <BootstrapBlazorDataAnnotationsValidator />

In ValidateForm But it didn't work

FluentValidationValidator ( Blazored.FluentValidation.FluentValidationValidator )

  <ValidateForm @ref="_form" Model="@ModelDto" OnValidSubmit="ValidateSubmit"
                OnInvalidSubmit="InValidateSubmit" ShowLabel="true" ShowLabelTooltip="true"
                 ShowAllInvalidResult="true" ShowRequiredMark="true" OnFieldValueChanged="OnFieldValueChanged">

      <FluentValidationValidator Validator="@ModelValidator" @ref="_fluentValidationValidator" />
      <ValidationSummary Model="@ModelDto" />
      <BootstrapBlazorDataAnnotationsValidator />
 </Validateform>
bb-auto[bot] commented 5 hours ago

@NabaviFard-Mahdi Thank you for submitting. We will give feedback later.