I have this SQL query that is just impossible to get going in LINQ.
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
)
)
The where clause also has to be done dynamically later on in the code.