What are the criteria for emitting classes in the DTOS

Can someone tell me what the criteria is to have a class (POCO or QueryDB class) to be emitted in the add reference?

Only DTOs used in Services are generated (i.e. its Service Contract). If you’re using AutoQuery RDBMS, you’d need to register the AutoQueryFeature plugin.