Using LINQ to get one entity with the most of a child entity
I have an entity in Entity Framework 4 called `Topic`. `Topic` has a navigation property to a collection of `Reply` entities.

I am trying to craft a query that obtains the most popular topic based on the number of replies.

    entityContainer.Topics.Single(x => x./* has the most replies of any topic */);

I'm not sure how to craft a query to accomplish this. Any help is appreciated.
Using LINQ to get one entity with the most of a child entity
===

I have an entity in Entity Framework 4 called `Topic`. `Topic` has a navigation property to a collection of `Reply` entities.

I am trying to craft a query that obtains the most popular topic based on the number of replies.

    entityContainer.Topics.Single(x => x./* has the most replies of any topic */);

I'm not sure how to craft a query to accomplish this. Any help is appreciated.