最佳答案
我有课:
public class Person{ /* Props here */ }
public class PersonViewModel { /* Props here */ }
然后是清单:
List<Person> people = new List<Person>();
List<PersonViewModel> peopleVM = Mapper
.MapList<Person, PersonViewModel>(people); //Problem here.
做这件事的正确方法是什么?