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)));

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-09-21
相关资源
相似解决方案