Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

An extension of the fluent validation with a set of Brazilian validations

License

NotificationsYou must be signed in to change notification settings

LucasMendesl/FluentValidation.Extensions.Br

Repository files navigation

An extension of the fluent validation with a set of Brazilian validations

Nuget

🇧🇷 Switch to portuguese version

Main Goal

The prupose of this library is create a extension with brazilian´s validation toFluentValidation package.

Description

This library was designed to provide a set of brazilian´s attributes validation such as CPF, CNPJ

Install

Install with Package Manager

Nuget

PM > Install-Package Extensions.FluentValidation.Br

Install with .NET CLI

.NET CLI

dotnet add package Extensions.FluentValidation.Br

How to Use ?

publicclassPerson{publicstringName{get;set;}publicstringCPF{get;set;}publicstringCNPJ{get;set;}}publicclassPersonValidator:AbstractValidator<Person>{publicPersonValidator(){RuleFor(employee=>employee.Name).NotNull();RuleFor(employee=>employee.CPF).IsValidCPF();RuleFor(employee=>employee.CNPJ).IsValidCNPJ();}}

Run Tests

dotnet test

Contributing

Contributions via pull requests are welcome :-).

License

MIT ©Lucas Mendes Loureiro

About

An extension of the fluent validation with a set of Brazilian validations

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp