AutoMapper / AutoMapper.Extensions.Microsoft.DependencyInjection

MIT License
258 stars 79 forks source link

What is the alternative of “ResolveUsing” in AutoMapper.Extensions.Microsoft.DependencyInjection 6.0.0 #84

Closed arif2009 closed 5 years ago

arif2009 commented 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.

Can anybody tell me what is the alternative of ResolveUsing in version 6.0.0?

Submited a question on Stack Overflow.

lbargaoanu commented 5 years ago

http://docs.automapper.org/en/latest/8.0-Upgrade-Guide.html

lock[bot] commented 5 years ago

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.