EmitMapper and List
问题 It's the first time that I use EmitMapper. I have a list of object ex: Customer and I would like to map this list in a ienumerable of CustomerDTO how can I do that? Tnx 回答1: It's straightforward if you have a list and want to convert it to list of DTOs: var mapper = ObjectMapperManager.DefaultInstance.GetMapper<Customer, CustomerDTO>(); IEnumerable<CustomerDTO> dtos = listOfCustomer.Select(mapper.map); The preblem is when the list is in another object, for example User and UserDTO: class User