cezarypiatek / MappingGenerator

:arrows_counterclockwise: "AutoMapper" like, Roslyn based, code fix provider that allows to generate mapping code in design time.
https://marketplace.visualstudio.com/items?itemName=54748ff9-45fc-43c2-8ec5-cf7912bc3b84.mappinggenerator
MIT License
1.03k stars 120 forks source link

Add simplified object initialization #18

Closed ghost closed 6 years ago

ghost commented 6 years ago

If code style rule "IDE0017 Object initialization can be simplified" enabled (default) in VS, generated mapping code cause the warning occurrence. Maybe it worth to consider implement simplified object initialization or added this feature as an option in the extension configuration. map_001

cezarypiatek commented 6 years ago

This is one of the must have feature. Because the mapping can be very complex (with nested object) is's not so easy to implement. Probably it requires refactoring of MappingGenerator class.

cezarypiatek commented 6 years ago

Available in https://github.com/cezarypiatek/MappingGenerator/releases/tag/1.3.116 @ungradge I would be appreciate if you could check this new mapping option and let me know if everything works fine.