I need to order the articles stored in a database by descending publication date and then take the first 20 records after the article with Id == 100.
Id == 100
T
You can try like this
var articles = db.Articles .Where(a => a.PublicationDate < db.Articles .Where(aa => aa.Id==100) .Select(aa => aa.PublicationDate) .SingleOrDefault()) .OrderByDescending(a => a.PublicationDate) .Take(20);