EF 文章表和标签表联合查询标签id在dis中的文章,还不知道性能如何
var query = tagRepo.Entities.Include("Tags").Where(t => ids.Contains(t.ID)).SelectMany(t => t.Articles).Distinct();
或者
var query = articleRepo.Entities.Include("Tags").Where(t => t.Tags.Any(x => ids.Contains(x.ID)));