0
我寫了一些LINQ,但它沒有返回正確的數據,它似乎忽略了我的where子句。任何人都可以告訴我我在做什麼錯誤的語法?LINQ語法和where子句
IEnumerable<Ranking> lst = (from r in results
join m in membersToRank on r.UserId equals m.userId
join t in teamsToRank on m.teamId equals t.teamId
where r.ResultDate >= rankingStart
&& r.ResultDate <= rankingEnd
select new Ranking
{
memberId = m.memberId,
chain = t.chain,
name = m.name,
teamId = m.teamId,
value = results.Count(i => i.IsCorrect && i.UserId == m.userId)
}).ToList();
你的語法是好的,你可以顯示什麼錯誤意味着烏爾查詢 – 2012-07-20 13:11:48