打赏

iqueryable lambda表达式

1、groupby 

 

 

1、group by

var newLaborDtos = laborDtos.GroupBy(s => new { s.FinancingAmount, s.CompanyNo, s.FinancingChannels, s.CompanyName, s.FinancingPurpose })
.Select(p => new CompanyFinancialDemandModel
{
Id = 0,
FinancingAmount = p.Key.FinancingAmount,
CompanyNo = p.Key.CompanyNo,
FinancingChannels = p.Key.FinancingChannels,
CompanyName = p.Key.CompanyName,
FinancingPurpose = p.Key.FinancingPurpose
});

 

posted @ 2016-10-31 10:42  KiteRunner1988  阅读(191)  评论(0编辑  收藏  举报