Skip to content
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

ICtorParamConfigurationExpression.ResolveUsing<TValueResolver> #2056

Closed
DaveVdE opened this issue Apr 6, 2017 · 3 comments
Closed

ICtorParamConfigurationExpression.ResolveUsing<TValueResolver> #2056

DaveVdE opened this issue Apr 6, 2017 · 3 comments

Comments

@DaveVdE
Copy link

DaveVdE commented Apr 6, 2017

I have a couple of places where I want to use a value resolver to do some kind of transformation, but I can't because my destination models are immutable. Right now this forces me to use type converters for these immutable models, because there's no ResolveUsing method on the interface to configure constructor members, like there is on the interface to configure property members.

@DaveVdE DaveVdE changed the title Can I has ICtorParamConfigurationExpression.ResolveUsing<TValueResolver> ? ICtorParamConfigurationExpression.ResolveUsing<TValueResolver> Apr 6, 2017
@DaveVdE
Copy link
Author

DaveVdE commented Apr 6, 2017

Specifically, the method that allows me to configure to use a custom value resolver across a number of mappings by redirecting the source model would be useful.

@lbargaoanu
Copy link
Member

void ResolveUsing<TMember>(Func<TSource, TMember> resolver);

If you're missing some other overload, PR-s are welcome.

@lock
Copy link

lock bot commented May 6, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants