You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current DTO mapping strategy using private nested classes within each DTO can be cumbersome and disorganized, especially as the number of DTOs grows. This makes it so you have to make the default map everytime a DTO is created.
I'd suggest a reflection-driven MappingProfile that uses this IMapFrom<> interface. This will automatically register all mappings in the assembly, creating default maps just by using the interface and giving the developer the ability to override if there's a need for a custom map.
The current DTO mapping strategy using private nested classes within each DTO can be cumbersome and disorganized, especially as the number of DTOs grows. This makes it so you have to make the default map everytime a DTO is created.
I'd suggest a reflection-driven MappingProfile that uses this IMapFrom<> interface. This will automatically register all mappings in the assembly, creating default maps just by using the interface and giving the developer the ability to override if there's a need for a custom map.
Here’s a snippet of the suggested additions:
The text was updated successfully, but these errors were encountered: