Closed otryshko closed 4 years ago
Hi,
It looks like a very custom logic. If you have multiple mapping pairs: (RuntimeDtoA, StorageDto), (RuntimeDtoB, StorageDto) then you should prepare an empty method for each pair and then use MappingGenerator to generate them. A method responsible for deciding which specific mapping method to invoked should be implemented manually - if you are using OnBuildGenerator then this method should be put in partial class.
Hi, In my runtime object-to-storage Dto convertion I need to represent my class hierarchy with a "Type" property, i.e.
Can I make the Mapping Generator to generate (for RuntimeDto -> StorageDto codepath)
and (for StorageDto -> RuntimeDto codepath)