📅  最后修改于: 2022-03-11 14:49:11.700000             🧑  作者: Mango
var accountBalance = context
.AccountBalanceByDate
.Where(a =>
a.Date == context.AccountBalanceByDate
.Where(b => b.AccountId == a.AccountId && b.Date < date).Max(b => b.Date));