如何将sql转换为system.linq?
Select top 100 percent s.a,s.b,s.c,s.d
From table a as s, table b as x
Where
s.a=x.a and s.b=x.b and s.c=x.c
Group by
s.a,s.b,s.c,s.d
根据我对您问题的理解;似乎您想在c#中获取数据并加入。如果是这样,那么您可以执行以下操作:
我认为您正在询问如何像在sql中一样加入linq,如果是,请参见以下内容: