An open API service indexing awesome lists of open source software.

https://github.com/tabblazor/tabblazor.fluentvalidation


https://github.com/tabblazor/tabblazor.fluentvalidation

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# TabBlazor.FluentValidation
A library for using FluentValidation with [TabBlazor](https://github.com/joadan/TabBlazor)

[![Build](https://github.com/magahl/TabBlazor.FluentValidation/actions/workflows/ci.yml/badge.svg)](https://github.com/magahl/TabBlazor.FluentValidation/actions/workflows/ci.yml)

[![Nuget](https://img.shields.io/nuget/v/tabblazor.fluentvalidation.svg)](https://www.nuget.org/packages/TabBlazor.FluentValidation/)
## Installing

You can install from Nuget using the following command:
`dotnet add package TabBlazor.FluentValidation`

1. Add validation into DI like below

```csharp
services
.AddTabBlazor()
.AddValidation();
```

2. Add validators:

```csharp
services
.AddTransient, PersonValidator>();
```

3. Profit