-1
여기에 Country 및 State라는 두 개의 테이블이 있습니다. C# 또는 Vb.Net을 사용하여 Lambda Expression의 Entity Framework에 대한 SQL 쿼리보다 아래에있는 을 알고 싶습니다.SQL 쿼리 변환 대 엔티티 프레임 워크
SELECT dbo.Country.CountryID, dbo.Country.CountryName, dbo.State.StateName
FROM dbo.Country
INNER JOIN dbo.State ON dbo.Country.CountryID = dbo.State.CountryID
감사합니다 선생님, 친절하게 당신이 ...... 람다 식에 다시 쓸 수, 엔티티 프레임 워크 –
context.country.Join (context.state, P => p.CountryID, Q = > q.CountryID, (p, q) => 새로운 {p.CountryID, p.CountryName, q.StateName}); –