Using the new LengthAttribute in .NET 8 with EFCore and Swashbuckle
Using the new LengthAttribute in .NET 8 with Entity Framework Core and Swashbuckle.AspNetCore which is a short-hand for using both MinLengthAttribute and MaxLengthAttribute.
4 min read