2016-09-14 2 views

Antwort

2

Verwendung Conditional Mapping:

Mapper.Initialize(cfg => { 
    cfg.CreateMap<Foo,Bar>() 
    .ForMember(dest => dest.baz, opt => opt.Condition(src => (src.baz != null))); 
}); 
Verwandte Themen