I want to have MULTILEVEL include in my linq statment, something like
var a = departments.include(u=>u.Customers)
.include(u=>u.Customers.Include(u=>u.Orders);
How should i do that?
Thanks
You of course can use lambda expression but you must use special format:
var a = departments.Include(d => d.Customers.Select(c => c.Orders));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With