Wonder how I might gain more granular control over the generation of initialized collections. I have explicit AutoQuery
QueryBase DTOs in which the arrays/lists should not be initialized as they will change the query itself.
From what I see so far only the
InitializeCollections flag exists to toggle this behavior. I was hoping for the ability to attribute
[SuppressInitializeCollections] on DTOs in which I am certain the consumer should not initialize automatically, overriding the global flag.
I just started mixing AutoQuery into one of my new projects and ran into this issue and my UI guy is having to manually remove the constructor just for the AutoQuery type, as for all the other DTOs we do wish to have collections initialized.