Automapper map child list with from same type
问题 I have entities that may have children and their children may have children and so on... When I get database models all entities are OK with correct children and parent. But the problem comes when I want to map to view model: Is there any possible way to map models from database like this? // database model code first public class Tomato { public int Id { get; set; } public string Name { get; set; } public int? ParentId { get; set; } public virtual Tomato Parent { get; set; } public