我可以使用 Mapster.Tool 生成 Mappers 而不生成我要映射到的类吗?我有一个典型的域对象往返 DTO 场景,但这里的示例代码
https://github.com/MapsterMapper/Mapster/tree/master/src/Sample.CodeGen
和这里的文档
https://github.com/MapsterMapper/Mapster/wiki/Mapster.Tool
两者都专注于从域对象生成 DTO,通过使用属性注释它们或使用配置。有创建特定于 CRU 的 DTO 的配置,但我仍然宁愿创建自己的 DTO,但不必创建自己的映射。