No you should not use View Model if you are using information only from Model. It is a simple situation. Create strongly-typed View and use your Model directly.
eu-ge-ne
2009-06-08 17:59:26
No you should not use View Model if you are using information only from Model. It is a simple situation. Create strongly-typed View and use your Model directly.
I tend to use a domain model until I need a view model. Why? Using the domain model is faster up front. Then, when the domain model no longer covers my need, I refactor, adding what I need where I need it. I'm a big fan of "get it working quickly and refactor vigorously".
This also goes for splitting models into multiple user controls.