上代码:
var jobViewModels = jobs.Select(job => Mapper.Map<JobViewModel>(job));
Linq
来自:https://stackoverflow.com/questions/18747149/automapper-convert-an-int-to-a-string
原来直接调用更简洁
result = _mapper.Map<List<ZgdmkViewModel>>(list);
上代码:
var jobViewModels = jobs.Select(job => Mapper.Map<JobViewModel>(job));
Linq
来自:https://stackoverflow.com/questions/18747149/automapper-convert-an-int-to-a-string
原来直接调用更简洁
result = _mapper.Map<List<ZgdmkViewModel>>(list);