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...

Комментарии • 11

  • @GeorgeZarogkikas
    @GeorgeZarogkikas 2 года назад

    Excellent presentation

  • @shanmukhapatil7131
    @shanmukhapatil7131 Год назад +1

    Could you please make a video on fluent api and configuration in detail and best way to use it

  • @novaploca2080
    @novaploca2080 Год назад

    Great basic video.

  • @AlekDavis
    @AlekDavis 2 года назад

    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.

  • @VijayKumar-wy9ku
    @VijayKumar-wy9ku Год назад

    Superb!!

  • @sovannseung6985
    @sovannseung6985 2 года назад +2

    Could you share the link for your video regarding out of box for validation? Thank you.

  • @bhushannarvekar4346
    @bhushannarvekar4346 Год назад

    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

  • @erictenwestenend868
    @erictenwestenend868 Год назад

    How to set focus to the first invalid element?

  • @bkerlayer9858
    @bkerlayer9858 2 года назад

    facebook and google authentication in dot net core please