上代码:

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);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-12-23
  • 2021-07-27
猜你喜欢
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2022-02-05
相关资源
相似解决方案