AutoMapper Update UseDestinationValue Not Working as expected on Virtual Properties


Struggling to get AutoMapper (6.1.1) to work in this scenario of attempting to update an existing Vendor and associated Vendor Contacts.



I've tried using .ignore() and .UseDestinationValues() on the related entities, both to no avail.



Here's what happens to the destination values after the map:



What am I doing wrong or am I misunderstanding how this is supposed to work?



POCOs



Maps



Code



both entities has the same name, it looks like you are missing a namespace






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

佛陀 (漫畫)

金賢洙

白葡萄酒