我如何將這個更改爲LINQ到SQL?SQL連接查詢linq語法
select * from ratesSchedule as rs
inner join userdetails as ud on rs.sid = ud.sid
and rs.tabletype = 'd'
我走到這一步
var results = from rs in db.ratesSchedule
join ud in db.userdetails on rs.sid equals ud.sid
,但我無法弄清楚如何添加「和rs.tabletype =‘d’」
這正是我想要做的,但'd'(一個字符類型),它不會工作。我猜應該試試「d」。謝謝! – jorsh1 2009-02-15 01:10:15