MapsterMapper / Mapster

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

Add ability to compile all mappings and then throw AggregateException #363

Closed MisterOzzy closed 2 years ago

MisterOzzy commented 3 years ago

Hi, guys. We would like to have ability try to compile all mapping configurations in solution and only then fail if something is wrong. We are going to add call Compile method in startup time. Currently, I see only first incorrect mapping configuration and I have to start my solution each time to discover only 1 problem. With this change, I just need to start up my project only one time to get all mapping errors. @chaowlert