Hi, I currently have the flowowing object
News:
- NewsID (PK)
- CategoryID (FK)
- NewsTitle
Category:
- CategoryID (PK)
- CatName
How can I select the last 5 news for each group using LINQ to SQL? I can't use foreach in this case because it cause multiple query. What should I do to optimize with just one or few query possible?
Thank you