1、在控制台中namespace StudyAutoMapper
{public class Foo{public int ID { get; set; }public string Name { get; set; }}public class FooDto{public int ID { get; set; }public string Name { get; set; }}public class AutoMapperProfile : Profile{public AutoMapperP…