As I find the AutoGen feature of AutoCrud saves a lot of development time, I was wondering whether it is possible to intercept AutoCrud’s create/update commands, so that all string properties in a RequestDto could be trimmed before being stored in the database?
If it cannot be done generically for all string properties, are there any annotations that can be added to the RequestDto’s string properties? Or could #Script be used? Or could I use the fluent validations mechanism to return a validated and trimmed RequestDTO?
I do not want to implement my own services for each table requiring standard CRUD actions.