Why write lot code...
public sealed partial record Command
(
[property: MinLength(20)] string Name,
[property: MaxLength(250)] string Description,
) : IValidationTarget<Command>;
... when few code do trick?
public sealed partial record Command
(
[MinLength(20)] string Name,
[MaxLength(250)] string Description,
) : IValidationTarget<Command>;