📜  LInQ EF Core C# 代码示例中的子查询

📅  最后修改于: 2022-03-11 14:49:11.700000             🧑  作者: Mango

代码示例1
var accountBalance = context
    .AccountBalanceByDate
    .Where(a => 
        a.Date == context.AccountBalanceByDate
             .Where(b => b.AccountId == a.AccountId && b.Date < date).Max(b => b.Date));