ValueInjecter: how to ignore some properties while performing .InjectFrom<UnflatLoopValueInjection>(data)?

Viewed 1686

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?

2 Answers
Related