select top 5 in entity framework
Posted
by fishiefishie
on Stack Overflow
See other posts from Stack Overflow
or by fishiefishie
Published on 2010-04-16T23:17:57Z
Indexed on
2010/04/16
23:23 UTC
Read the original article
Hit count: 228
c#
|entity-framework
I have
[Person]
PersonID, EmailAddress, FirstName, LastName
[OnlineAccount]
OnlineAccountID, PersonID, Nickname
Each person is allowed to have 0-* OnlineAccount.
In entity framework with C#, how do I select the top 5 Person that has the most accounts?
© Stack Overflow or respective owner