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

Generate splatting in LINQ query does not work #13

Closed OmiCron07 closed 6 years ago

OmiCron07 commented 6 years ago

Can you generate the splatting with other scenarios like :

From image To image

cezarypiatek commented 6 years ago

Personally, I'm not using this linq-syntax on the daily basis. In "normal" constructor invocation the splatting should work but there must be some differences in linq syntax. I have to check this.

OmiCron07 commented 6 years ago

You are totally right, just tested and when not in linq, it works. The linq is the culprit.

cezarypiatek commented 6 years ago

My fix seems to work in VS 15.6.6. @OmiCron07 could you confirm that with https://ci.appveyor.com/api/buildjobs/jn23alhhhsptqrbp/artifacts/MappingGenerator%2FMappingGenerator%2FMappingGenerator.Vsix%2Fbin%2FRelease%2FMappingGenerator.vsix ?