Closed arif2009 closed 5 years ago
I am working on .Net core 2.1 with AutoMapper.Extensions.Microsoft.DependencyInjection 6.0.0. This is my mapping configuration :
CreateMap<User, UserForListDto>() .ForMember(dest => dest.Age, opt => { opt.ResolveUsing(d => d.DateOfBirth.CalculateAge()); });
Here ResolveUsing is not working, because it is removed or renamed in version 6.0.0, but it works fine in version 4.0.1.
ResolveUsing
6.0.0
4.0.1
Can anybody tell me what is the alternative of ResolveUsing in version 6.0.0?
Submited a question on Stack Overflow.
http://docs.automapper.org/en/latest/8.0-Upgrade-Guide.html
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.
I am working on .Net core 2.1 with AutoMapper.Extensions.Microsoft.DependencyInjection 6.0.0. This is my mapping configuration :
Here
ResolveUsing
is not working, because it is removed or renamed in version6.0.0
, but it works fine in version4.0.1
.Can anybody tell me what is the alternative of
ResolveUsing
in version6.0.0
?Submited a question on Stack Overflow.