标题不太好写
A Have List
B have C
EF6:
dbConte[align=right]xt.Set().Include(a => a.Bs).Include(a => a.Bs.Select(b => b.C))
EF core:
var customers = context.Company
.Include(i => i.Manager )
.ThenInclude(a => a.ClientMessage )
.ToList();
Other:
Lazy模式,Include不起作用,只有关闭Lazy模式后(去掉virtual或显式关闭Lazy模式)则Include有效
https://q.cnblogs.com/q/70382/