agileobjects / AgileMapper

A zero-configuration, highly-configurable, unopinionated object mapper with viewable execution plans. Flattens, unflattens, deep clones, merges, updates and projects queries. .NET 3.5+ and .NET Standard 1.0+.
MIT License
460 stars 27 forks source link

Generating mapping code #190

Open biqas opened 4 years ago

biqas commented 4 years ago

Hi,

it would be grate to generate during msbuild the generated execution code.

Would have some benefits, caching would not be necessary, you can see without additional efforts what the mapping code is, it would be even possible to generate partial methods to provide custom interactions/hooks.

Here is library which can be used for it developed by Andrew Arnott (Microsoft): https://github.com/AArnott/CodeGeneration.Roslyn

SteveWilkes commented 4 years ago

Thanks for the suggestion - I'll look into it!

Steve