请提供以下SQL查询转换为LINQ
SQL Query converted to LINQ Query :
以下SQL查询的LINQ转换所需的SQL
select COUNT(rg.TagId), t.Name, r.Id,r.Name from ResourcesTag rg
inner join Tag t on rg.TagId = t.Id
inner join Resources r on rg.ResourceId =r.Id
group by rg.TagId,t.Name,r.Id,r.Name
order by COUNT(rg.TagId) desc
答案 0 :(得分:0)
将SQL转换为LINQ查询理解:
IN
翻译为.Contains()
,将NOT IN
翻译为!...Contains()