I want to retrieve multiple values from single table based on multiple conditions using only one LINQ query. my table looks like:
ArticleId (int)
ArticleName (string)
CreatedDate (datetime)
ArticleType (string)
Views (int)
I want to retrieve:
- top 5 recently created articles,
- top 5 articles with maximum views,
- top 5 articles with ArticleType = "News"
using only one LINQ query. i am new to learning these things, so i dont know if this is even possible. pardon me if this is a stupid question. and if any body could please answer in method syntax in LINQ. any help is appriciated.