Viewmodels and Models, howto split them up

Posted by molgan on Stack Overflow See other posts from Stack Overflow or by molgan
Published on 2010-06-01T14:06:41Z Indexed on 2010/06/01 14:13 UTC
Read the original article Hit count: 168

Filed under:

Hello

I'm using asp.net mvc 2 and I'm not sure howto structure the models and viewmodels. In the nerddinner there is only 1 of each.

Shall I have only 1 viewmodel of each entity (?) and then have 1 model for each form-modifing viewpage? So that viewmodel contains like all it ever would need, like: PagedFoo FooClass ..., FooClass, Foowithbunnies, FooClassStats... ?

/M

© Stack Overflow or respective owner

Related posts about asp.net-mvc