If for example I have something like this:
Mapper.CreateMap<Foo,FooDto>()
.ForMemeber( ...;
and I have
class Bar
{
public Foo Foo { get; set; }
}
class BarDto
{
public FooDto Foo { get; set; }
}
than I have to repeat the mapping logic for Foo to FooDto again:
Mapper.CreateMap<Bar,BarDto>()
.ForMemeber(...
At the moment I use Mapper.Map inside a ValueResolver but I think that there could be a better way