나는 this 기사에서 다음 SQL을 변환 할 수 있습니다 방법 :엔티티에 LINQ에 SQL 변환
ctx.Fruits.
Where(f => f.Price == ctx.CreateObjectSet<Fruit>().
Where(f1 => f1.Type == f.Type).Min(f1 => f1.Price));
있지만 ctx.CreateObjectSet 때문에 작동하지 않습니다 : 나는이 방법을 시도
select type, variety, price
from fruits
where price = (select min(price) from fruits as f where f.type = fruits.type)
SQL로 변환 할 수 없습니다.
나에게 수치! 당신 말이 맞아요. 방금 JoinObject에 대한이 CreateObjectSet 구문을 사용하여 여기서는 작동하지 않습니다. –
SiberianGuy