SQL Server查询中这个Linq查询的等价物是什么?
IEnumerable<Profile> profiles = am.Profile.Where(a => articles.Select(b => b.ProfileId).Distinct().Contains(a.ProfileID));
哪里articles
是:
IEnumerable<Article> articles = (from a in am.Article
orderby a.AddedDate descending
select a).ToList();