MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.3k stars 328 forks source link

Create Subfolder for CodeGeneration #515

Closed Christoph-Wolf-Coduct closed 1 year ago

Christoph-Wolf-Coduct commented 1 year ago

Hey, I wanted to make Life easy and generate a couple of DTOs and put them together as necessary (shallow DTOs to prevent circular References (the generated Extension Methods seem to be a bit too convoluted, so I just put another DTO in the DTO Structure => dictionary checking etc avoided, IdOnly DTOs for even shallower Information)

But now I'm having too many DTOs in one folder.

Is there a way to put generated DTOs into subfolders? because i didn't find a way to do that in Mapster.Tool automatically.

I know we could do it by hand, but we're already having such a nice tool. it would be great if we could have that feel good functionality.

image

Christoph-Wolf-Coduct commented 1 year ago

hmm, you know what, not worth the micromanagement hassle. I figured its easier to copy just the DTOs and make them shallow when necessary. was worth the obsessive try i guess^^