Skip to content

Commit 190b68a

Browse files
committed
Include customer addresses in retrieval of all customers with orders
1 parent 7b90ac1 commit 190b68a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

NorthwindCRUD/Services/CustomerService.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public IQueryable<CustomerDb> GetAllAsQueryable()
3535
public CustomerDb[] GetAllCustomersWithOrders()
3636
{
3737
return this.dataContext.Customers
38+
.Include(c => c.Address)
3839
.Include(c => c.Orders)
3940
.ThenInclude(o => o.OrderDetails)
4041
.ToArray();

0 commit comments

Comments
 (0)