Restated question:
I have foo.
Foo has many fizzs.
Fizz has Foo.
Bar has one fizz.
I want to find foo, which has fizz with the highest count of bars that reference it using LINQ .
It would be perfect, if linq would be NHibernate.Linq compatible. But that's already a different story.
Old question:
I know - question is simple. I've always been struggling with sql selects.
I have foo.
Foo has many fizzs.
Fizzs have many bars.
I want to find foo, which has fizz with the highest count of bars using LINQ .
P.s. sorry for asking to do my job.
Edit:
damn... it's different. Bar has fizz, fizz does not have bars. :/