Linq这样可以写吗?
select m.* , 名次 = row_number() over(order by times desc) from
(
select UserID , sum(IsRight) as times from Lot_yc_Number where Issue = 123 and playid = 13 group by UserID
) as m
order by m.times desc
------解决方案--------------------你给的SQL,想变成Linq?
------解决方案--------------------你这是linq吗 ?? 你确定不是sql?
var v(随便一个名字) =from data in (对象名)
where data.UserId
selete data
大概这种类型 和sql差不多 但不是一样