-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Consolidate ResolveUsing to MapFrom #2809
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
Conversation
|
A small thing, but I wouldn't mind seeing UseValue gone :) |
|
Ha, oh right! Because we used to force people to only use I'd be OK with that, |
|
OK, it should be simple to do. I'll open a PR whenever :) |
|
Too late lol
…On Thu, Sep 27, 2018 at 7:46 AM Lucian Bargaoanu ***@***.***> wrote:
OK, it should be simple to do. I'll open a PR whenever :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2809 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGYMoWSY1zeU3ILcuMa9MOZnYaMPkR7ks5ufMizgaJpZM4W7fHD>
.
|
|
Nice :) |
|
Ok, fantastic. I have replaced - .ForMember(dest => dest.UserId, opts => opts.ResolveUsing(src => src.User?.Id))
+ .ForMember(dest => dest.UserId, opts => opts.MapFrom(src => src.User?.Id))I find the following solution unacceptable: .ForMember(dest => dest.UserId, opts => opts.MapFrom(src => src.User == null ? (long?) null : src.User.Id))Is there any other way to deal with this breaking change? |
|
Check the upgrade guide. |
|
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. |
Per #2795 discussion