内连、左连、右连
摘要://内连 from a in TableA join b in TableB on a.Id equals b.Id select new { aName=a.aName, bName=u.bName} //左连 from a in TableA join b in TableB on a.Id e
阅读全文
linQ
摘要://分组排序 对应SQL partion by var REList = crList.OrderByDescending(x => x.dtTime).GroupBy(x => new { x.vcRobot })//可多列 .Select(g => new { g, count = g.Coun
阅读全文