首页 新闻 赞助 找找看

关于linq to sql 的一个查询的写法

0
悬赏园豆:20 [已关闭问题] 关闭于 2010-12-27 12:19

怎么用linq to sql 写这样的查询

select typeId, count(i.Id)
from tblType as t
  left outer join tblItem as i
    on t.typeId = i.type

问题补充: select t.typeId, count(i.Id) from tblType as t   left outer join tblItem as i     on t.typeId = i.type group by t.typeId
SoXLiang的主页 SoXLiang | 初学一级 | 园豆:142
提问于:2010-12-27 09:55
< >
分享
所有回答(1)
0

你好像要统计是吗?groupby。

顾晓北 | 园豆:10844 (专家六级) | 2010-12-27 10:58
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册