MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.37k stars 332 forks source link

Q: Map with dest condition #469

Closed ParadiseFallen closed 2 years ago

ParadiseFallen commented 2 years ago

How to map model and use conditions but for dest model?

// now
.Map(x=>x.A, y=>y.B, x=>x.C != null);
// question is how to do like
.Map(x=>x.A, y=>y.B, (x,y)=>x.A != null && y.C > 0);
andrerav commented 2 years ago

Hi @ParadiseFallen, please use StackOverflow to ask general usage questions. Thanks!