Using FluentValidation in ASP.NET Web API for Model Validation (Implemented in .NET 6 and C# 10)



#aspdotnetcore #dotnet6 #fluentvalidation

API Model validation using FluentValidation NuGet package in ASP.NET 6 (.NET 6 and C# 10) is extremely simple and straightforward.

FluentValidation provides cleaner implementation compared to the out-of-the-box validation from the .NET framework. It can also be used in a console application to validate models. That opens up a way to reuse model validation across HTTP-based as well as reactive microservices.

My YouTube channel: https://www.youtube.com/c/DotNetCoreCentral
My Blog Website: https://dotnetcorecentral.com/
My Github repo: https://github.com/choudhurynirjhar

Some of my popular videos:

Elasticsearch with .NET and introduction: https://youtu.be/9tkrDqMbFMg

Hangfire Scheduling an introduction: https://youtu.be/sQyY0xvJ4-o

ASP.NET Core Authentication with JWT (JSON Web Token): https://youtu.be/vWkPdurauaA

Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): https://youtu.be/1Fe7QD7Ovi8

How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): https://youtu.be/hlUGZ6Hmv6s

Comments are closed.