Closed axelheer closed 4 years ago
Hi, can you provide an example of the expected code that should be generated?
var result = context.Personen.Save(key, person =>
{
person.X = item.X;
person.Y = item.Y;
});
Here's a pre-release version with the implementation of the requested feature https://ci.appveyor.com/api/buildjobs/8v29nu5lhugmgo5h/artifacts/MappingGenerator%2FMappingGenerator%2FMappingGenerator.Vsix%2Fbin%2FRelease%2FMappingGenerator.vsix
It also contains a couple of improvements for #101
Please let me know if everything works according to your expectations.
I've deleted some mapping code and was able to re-generate it using your tool. Except some business logic, calculations, aggregations and the like... of course. That should be a huge "dull-saver"!
Thanks a lot, I'm pumped. 😲
I've just made an official release with #102 and #101. Please install a new version from the marketplace to make sure you will get automatic updates/notifications in the future. https://marketplace.visualstudio.com/items?itemName=54748ff9-45fc-43c2-8ec5-cf7912bc3b84.mappinggenerator
Is there a way to complete lambdas too?
A workaround would be to extract an update method first:
And then let MappingGenerator do its magic within
Update
.Having this magic within the lambda itself would come in very handy.