1.linq查询语法写法
var data1 = (from l in list select _mapper.Map<T>(l)).ToList();
2.linq方法语法写法
var data = (list.Skip((currentPage - 1) * pageSize).Take(pageSize)
.Select((p) => _mapper.Map<T>(p))).ToList();
优秀的程序员一定要让代码简洁易懂,便于维护。
标签:Map,pageSize,linq,AutoMapper,写法,select From: https://www.cnblogs.com/clsoft/p/17512863.html