-
-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support AutoMapper‘s IMapper
to simplify migration
#1205
Comments
This is currently not supported by Mapperly. |
Do you reckon this is possible and something you want? I may be able to work in this. Let me know what the steps would be and if you want this. If not, this van be closed. |
I think Mapperly currently doesn‘t support all method signatures required by AutoMapper‘s
Note: even if we support all Would be very happy to see you contributing! A good starting point is the contributors documentation. Let me know if you need any hints. |
IMapper
to simplify migration
Thanks for taking the time to answer me. I started a side project but i will tryout mapperly and in that process may allocate some hours towards this, busy days however.
I forgot to mention this but, but i kind of follow the school of thought that mappers should be kept simple as to not obscure implementation details when mapping. In other words i think i can make do with the current feature set and was not wanting to go for full compat or anything. Only thing i now see is automapper's support for a Profile of mappings. I like the approach in #397 with an adapter. Perhaps we could have something like: [MapperlyIMapper]
public class IMapper; Which would source generate a Mapperly adapter to IMapper. At this point im not sure whether a full automapper IMapper interface with purpose of migration is the right way to go. Anyways i'll have a think on this. |
I thought again about this and I think it is not worth it. On most code bases it should be pretty trivial to identify usages of |
Hiya,
I'm using Automapper right now and i have IMapper instances here and there.
Is there support for mapperly and an IMapper interfaces class to make migration possible?
Mapster has this feature.
https://github.com/MapsterMapper/Mapster?tab=readme-ov-file#you-can-get-imapper-instance-via-dependency-injection-so-you-do-not-have-to-change-code-when-migrating-to-mapster-from-automapper
The text was updated successfully, but these errors were encountered: