When do I use View Models, Partials, Templates and handle child bindings with MVC 3

When should I use View Models? Is it not recommended to use the domain? I find that my view models are copies of my domain objects, and don’t see the value… View models should always be used. You should not use your domain models in the view. View models are not exact copies of the … Read more

ASP.NET MVC 3 – Partial vs Display Template vs Editor Template

EditorFor vs DisplayFor is simple. The semantics of the methods is to generate edit/insert and display/read only views (respectively). Use DisplayFor when displaying data (i.e. when you generate divs and spans that contain the model values). Use EditorFor when editing/inserting data (i.e. when you generate input tags inside a form). The above methods are model-centric. … Read more