Using FluentValidation in ASP.NET Web API for Model Validation (Implemented in .NET 6 and C# 10)
HTML-код
- Опубликовано: 22 авг 2024
- #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 RUclips channel: / dotnetcorecentral
My Blog Website: dotnetcorecent...
My Github repo: github.com/cho...
Some of my popular videos:
Elasticsearch with .NET and introduction: • An Introduction to Ela...
Hangfire Scheduling an introduction: • Scheduling recurring j...
ASP.NET Core Authentication with JWT (JSON Web Token): • ASP.NET Core Authentic...
Running Background tasks using IHostedService and BackgroundService (In ASP.NET Core 3.1): • Running Background tas...
How to build an API Gateway in ASP.NET Core using Ocelot (Build API Gateway in a few minutes): • How to build an API Ga...
Excellent presentation
Could you please make a video on fluent api and configuration in detail and best way to use it
Great basic video.
Thanks for watching!
Good info. Thanks. One thing that would be beneficial to know is: how do you control the ProblemDetails info returned to the caller when a validation operation fails.
Superb!!
Thanks a lot
Could you share the link for your video regarding out of box for validation? Thank you.
17:17 When we segregate the validator in Simple and Complex the simple validation does not work. It validates only Membership validation. Can you please check and confirm
How to set focus to the first invalid element?
facebook and google authentication in dot net core please