jjzjj

mappingExpression

全部标签

c# - 使用 AutoMapper 将 DataTable 映射到对象 (DTO)

我正在尝试使用AutoMappersDynamicMap功能将DataTable映射到对象(DTO)。DataTabledt;dt=newdalAllInvestors().InvestorNameSearch(investorNameSearch);//LookatDynamicMap-UrgentListapiObject=AutoMapper.Mapper.DynamicMap>(dt.CreateDataReader());returnapiObject;publicclassdtoAPISimpleInvestor{publicintFirmID{get;set;}publi