日期:2014-05-17 浏览次数:20579 次
public class User
{
public int Id{get;set;}
public string Name{get;set;}
public string Password{get;set;}
public UserRole Role{get;set;}
}
public class UserRole
{
public int Id{get;set;}
public string Name{get;set;}
}
public class AddUserViewModel
{
public string Name{get;set;}
public string Password{get;set;}
public UserRole Role{get;set;}//是这样还是:Public int RoleId{get;set;}?
}