Our DTO's are in a separate assembly, and this is being shared between the server (web api) and client (winforms). The DTO class use DataAnnotations heavily, especially for maxlength.
In our forms, we have to set the maxlength for each and every control. The controls are bound to the dto objects using bindingsource.
Is there a way to extract the dataannotations information and set the controls' maxlength automatically on loading the form?