var q =
                (from ar in db.Articles
                 join c in db.Categories on ar.ParentId
                     equals c.Id
                 join sc in db.Categories on ar.SubId equals sc.Id into scate
                 from sc in scate.DefaultIfEmpty()
                 where ar.IsPrivate == false
                 orderby ar.CreateTime descending
                 __select new
                            {
                               article = ar,
                               pcate = c,
                               scate = sc
  

相关文章:

  • 2022-01-10
  • 2021-10-06
  • 2022-12-23
  • 2022-01-15
  • 2021-06-24
  • 2021-12-28
  • 2022-12-23
  • 2021-05-24
猜你喜欢
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案