Aug 2, 2010 at 8:22 PM
Edited Aug 2, 2010 at 8:24 PM
If I have a
TabGroup class with property Tabs of type
and a TabGroupViewModel class with property Tabs of type
where TabViewModel has 5 properties (won't write them out here) that are a subset of Tab's properties (same names)
TabGroup tabgroup = GetFromDatastore();
TabGroupViewModel model = new TabGroupViewModel();
works for all TabGroup properties but Dictionary. The Tabs of model object remain null after injection.
If I do this
I get NullReferenceException because model.Tabs is null (it is null because the model was just instantiated as new).
Am I doing something that's a bit too much for ValueInjecter or is there something wrong in my code?
Other than that and minor issues (probably only due to the lack of knowledge of VI) I am very happy with VI, works much better than Automapper and it's much more intuitive.