public ActionResult ComDiff() { TMB_COMDIFFDTO cdDto = new TMB_COMDIFFDTO(); //获取完成工差列表 PageResult <TMB_COMDIFF> ef = service.GetComDiffs(cdDto); //获取分页数据 BASEPAGE page = AUTOMAPING.Mapping <BASEPAGE>(ef); this.HttpContext.Session["Page"] = page; //EF实体数据转换为DTO cdDto.ComDiffs = MAPPING.ConvertEntityToDtoList <TMB_COMDIFF, TMB_COMDIFFDTO>(ef.DataList); return(View(cdDto)); }