A view model mvvm design issue
        Posted  
        
            by Chen Kinnrot
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Chen Kinnrot
        
        
        
        Published on 2009-07-11T20:21:46Z
        Indexed on 
            2010/06/14
            8:02 UTC
        
        
        Read the original article
        Hit count: 312
        
mvvm
the best way to explain is with example so:
this is the model
    public class Person 
{
public int age;
public string name;
}
this is the view model
public class PersonVM
{
}
my question is: should the vm expose the person to the datga template or encapsulate the model properties with his own properties?
© Stack Overflow or respective owner