I have a 1 to many foreign key related table and I am wondering how to create the following SQL Server query in a Entity Framework LINQ query to only find parent records that have child records?
SELECT p.ParentId ,p.ParentName FROM Parent p JOIN Child c on p.ParentId = c.ParentId GROUP BY p.ParentId, p.ParentName HAVING COUNT(c.ParentId) > 0