AutoMapper.Collection does nothing for navigation properties
ArrowRaider opened this issue · 1 comments
ArrowRaider commented
I have an entity model that has a List<> navigation property and a DTO with an equivalent DTO-side list property.
If I call Mapper.Map(src.TheList, dest.TheList), it works as expected and adds/removes/updates instead of creating a new list. However if I do Mapper.Map(src, dest), it creates a new list for the navigation property in dest. I need to use Mapper.Map(src, dest) because there are other properties on dest that need set.
ArrowRaider commented
Nevermind, it suddenly works.