LINQ 关联数据
作者:互联网
关联JOIN
var query = from p in src1
join p2 in src2 on p.Guid equals p2.Guid
select new
{
item1 = p,
item2 = p2,
};
分组GROUP
var gg = from p in src1
group p by p.Type into g
let first = g.OrderBy(o => o.Ip).First()
select new DeliveryRelationDto
{
Key = first.Key,
Value = first.Value,
};
标签:p2,LINQ,关联,src1,Key,var,数据,select,first 来源: https://www.cnblogs.com/wesson2019-blog/p/14958621.html