Skip to content

carlblanchard/C3Soft.BlazoriseFluentValidation

 
 

Repository files navigation

BlazoriseFluentValidation 0.9.4

the Blazorise Team added an asyc method to the IValidationHandler interface, witch is a breacking change for BlasorizeFluentValidation, this is fixed in this version.

BlazoriseFluentValidation 0.9.3

Blazorise has a couple of breacking changes since 0.9.3 and Validation is one of the Areas that has been refactored. because of that a new implementation of the FluentValidation support was required.

Usage

First we have to register the required services

services.AddFluentValidationHandler();

Blazor markup

<Validation HandlerType="HandlerTypes.FluentValidation">

Note: you can also use typeof(FluentValidationHandler) instead of HandlerTypes.FluentValidation

so know you just have to implement your Model validatores and register them and you are good to go. I also added a sample Blazor Application.

BlazoriseFluentValidation 0.9.2

Note: this is compatible with Blazorise 0.9.2.x (there are breacking changes in 0.9.3 concerning the validation topic - i will provide some help as soon as i can) Is an implementation of the Balsorise IEditContextValidator to support FluentValidation.

this implementation is based on the EditoContextValidatior and the FluentValidator.

Usage

First we have to register the required services

services.AddBlazoriseWithFluentValidation();

Note: the AddBlazoriseWithFluentValidation calls AddBlazorise method internally

so know you just have to implement your Model validatores and register them and you are good to go. I also added a sample Blazor Application.

@icon-info-circle To learn more about Blazorise take a look at the docs

@icon-info-circle To learn more about FluentValidation take a look at the docs

About

Blazorise FluentValidation Integration

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 72.7%
  • PowerShell 14.8%
  • Shell 11.5%
  • Batchfile 1.0%