1
我需要在Oracle 11.2數據庫中運行此查詢,但生成的查詢包含「OUTER APPLY」。我該如何解決它?此LINQ查詢中不支持OUTER APPLY
var query = from r in Ctx.Reg
let status_1 = (r.Hist.OrderByDescending(o => o.Id).FirstOrDefault(h => h.RegId == r.Id).Status == 1)
let status_2 = (r.Hist.OrderByDescending(o => o.Id).Skip(1).FirstOrDefault(h => h.RegId == r.Id).Status == 2)
select new
{
r.Id,
...
status_1,
status_2
};