I’m using SS 6.6 and I’ve encountered a scenario where I want the generated DTOs to have constructors which initialise collections, but I don’t want that for the AutoQuery DTOs.
I don’t want it for AutoQuery DTOs because I don’t want the requests to be filled with empty noise, as I use the query params as part of a cache key for caching AutoQueries - and it doesn’t take much to push the cache key length over the 900 character limit of MSSQL for primary keys of the CacheEntry table. Even less than 900 characters for MySQL/MariaDb.
Also, it offers no convenience to the consumer to have these initialised, as they typically only ever get set.
I could parse the query params in my service and remove all the empty parameters before using it as part of the cache key, or is there a way to control in the AppHost which properties are initialised by the NativeTypes code generation feature?