-
-
Notifications
You must be signed in to change notification settings - Fork 147
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 accepting destination type as a parameter #349
Comments
For reference ( |
This would be a great enhancement for Mapperly but this needs some effort and therefore may take some time until it is implemented. |
Wow, that was fast! :) I have a question: given the interface From new documentation it is clear that only |
Also second question, if in the future passed parameters will be supported (#103), what will happen if target model has its own property |
@tvardero for now only A model with a property |
Example:
Will be generated to this code, using all known mappings in the current class:
What does this give us?
If user plans to migrate their project from Automapper to Mapperly, then user could just implement either interface
IMapper
interface orIMapperBase
in their Mapperly mapper class.This will reduce amount of refactoring required on the project. Probably, project code will not change at all, except for IServiceContrainer configuration code.
p.s. I don't know cases when
Type sourceType
is needed, but it is there inIMapperBase
interface.The text was updated successfully, but these errors were encountered: