I'm using ValueInjecter instead of AutoMapper. I'm trying to perform unflattening operation using
.InjectFrom<UnflatLoopValueInjection>(model)
It works, but I would also like to specity some properties to ignore during the unflattening operation, for example writing something like:
.InjectFrom<UnflatLoopValueInjection>(new IgnoreProperties("Prop1", "Prop2"), model)
or
.InjectFrom<UnflatLoopValueInjection>(model).IgnoreProperties("Prop1", "Prop2")
Any ideas?
you can grab the source code for the UnflatLoopValueInjection and create your own injection which has this feature and whatever else you need.
here's the code for it: http://valueinjecter.codeplex.com/SourceControl/latest#ValueInjecter/UnflatLoopValueInjection.cs
you could add a Property Ignored properties or put it in the constructor, and where you have the line
this should give you a quick idea of what you can do