说我有这门课:
public class Account
{
public int AccountID { get; set; }
public Enterprise Enterprise { get; set; }
public List<User> UserList { get; set; }
}
当我使用 AutoMapper 映射 Account 类时,我还希望它映射 Enterprise 类,以及返回对象中的用户列表 (UserList)。我怎样才能让 AutoMapper 做到这一点?
谢谢!