我有这个SQL查询,这在LINQ中是不可能的。LINQ的复杂SQL子查询
select * from attribute_value t0
where t0.attribute_value_id in
(
select t1.attribute_value_id from product_attribute_value t1
where t1.product_attribute_id in
(
select t2.product_attribute_id from product_attribute t2
where t2.product_id in
(
select product_id from product p, manufacturer m
where p.manufacturer_id = m.manufacturer_id
and m.name = 'manufacturer name'
)
and pa.attribute_id = 1207
)
)
where子句也必须稍后在代码中动态完成。
我不知道他是否为他工作,但感谢分享,很酷的软件! – 2010-09-16 19:52:10
我很感兴趣的是在该场景下看到该工具为OP提供了什么。 – eglasius 2010-09-17 00:18:58