C#C
C#4y ago
barcode

.NET 6 ASP.NET API [Answered]

Hello, I am programming a .NET and currently I am using
using System.ComponentModel.DataAnnotations;

[Required], [MaxLength], [MinLength] to validate data transfer objects sent by users in json.

I am wondering is there a better way to validate my DTOs, a week ago someone suggested to use FluentAPI, can someone give me advice?
Was this page helpful?