Self join in Entity Framework

Posted by Waheed on Stack Overflow See other posts from Stack Overflow or by Waheed
Published on 2010-05-22T10:49:44Z Indexed on 2010/05/22 11:00 UTC
Read the original article Hit count: 930

Filed under:
|
|

Hi,

I want to have following type of query in entity frame work

SELECT  c2.* 
FROM    Category c1 INNER JOIN Category c2
ON      c1.CategoryID = c2.ParentCategoryID
WHERE   c1.ParentCategoryID is NULL

How to do the above work in Entity framework...

© Stack Overflow or respective owner

Related posts about c#

Related posts about entity-framework