smurrell wrote:
I want it to point to that users type as all the stuff is related. No need to create multiple classes of type Users for example when I have defined one already in db and then it pulls through to dto
No, that's not how it works. If there are multiple entities A and B having a relationship with the entity C, then 'C' will end up in both the DTO ADto and BDto, but they're not the same: you can have different fields in the CDto related to ADto as you have in the CDto related to BDto. ADto owns the elements it relates to, so its own CDto. BDto owns its own elements too, so also its own CDto. You might decide to add additional related elements to BDto.CDto, which doesn't affect ADto.CDto, or denormalize fields from ADto.CDto into ADto, which doesn't affect BDto.CDto.
Due to this flexibility, the types are redefined, because they are different types. It's not a simple 1:1 reflection of the entity model, it's a derived model, you can change things, e.g. denormalize fields so they're no longer in e.g. 'Customer' but now part of the related element 'Order'.