CupOfTea
CupOfTea
CC#
Created by 127001 on 9/15/2023 in #help
❔ EF | Get N level associated data
I'm not sure, but I think that you can solve it by adding one more include with path:
var data = dbContext.Orders
.Include(x => x.OrderLines)
.ThenInclude(x => x.Product)
.ThenInclude(x => x.Category)
.Include(x => x.OrderLines)
.ThenInclude(x => x.Product)
.ThenInclude(x => x.ProductAdditionalInfos)
.Include(x => x.Customer)
.Include(x => x.Address)
.ToList();
var data = dbContext.Orders
.Include(x => x.OrderLines)
.ThenInclude(x => x.Product)
.ThenInclude(x => x.Category)
.Include(x => x.OrderLines)
.ThenInclude(x => x.Product)
.ThenInclude(x => x.ProductAdditionalInfos)
.Include(x => x.Customer)
.Include(x => x.Address)
.ToList();
But I think there is different, more clear way to do that
4 replies
CC#
Created by CupOfTea on 7/21/2023 in #help
❔ Learning Architectures
@tarcisioo@ZP ░▒▓█├■̶˾̶͞■┤█▓▒░@chaos_solo Thank you all guys for the answers! I've just learned about all GoF patterns and have used some of them in my project, but I still want to know more about architectures, patterns etc. Can someone suggest any articles, channels on youtube or something else?
26 replies