如何在usinq linq中使用where子句进行以下T-SQL查询?
select * from
tbl1 inner join tbl2
on tbl1.id = tbl2.id
where tdl1.col = tbl2.col
答案 0 :(得分:0)
在写了很多linq查询后,我终于找到了答案......
from t1 in tbl1
from t2 in tbl2
where t1.id == t2.id && t1.col1 == t2.col2
select new {
Anything...
}