I think I am missing a simple concept with a valueinjecter and / or AutoMapper, but how do you deeply clone the parent dto.Entity for biz.Entity and include all children?
For example, biz.person.InjectFrom(dto.person) . I want the dto.person.AddressList collection to copy to the biz.person.AddressList collection, although dto.Address and biz.Address do not look like types but have the same property names.
My thinking is that if the names of the properties of the parent are written the same way, for example, AddressList, then it would not matter if the 2 base objects have different types. It will still copy the same simple types like int, string, etc.
Thank you
user52212
source share