File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ public CustomerDb[] GetAll()
2222
2323 public IQueryable < CustomerDb > GetAllAsQueryable ( )
2424 {
25- return this . dataContext . Customers ;
25+ return this . dataContext . Customers
26+ . Include ( c => c . Address ) ;
2627 }
2728
2829 public CustomerDb ? GetById ( string id )
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ public EmployeeDb[] GetAll()
2222
2323 public IQueryable < EmployeeDb > GetAllAsQueryable ( )
2424 {
25- return this . dataContext . Employees ;
25+ return this . dataContext . Employees
26+ . Include ( c => c . Address ) ;
2627 }
2728
2829 public EmployeeDb ? GetById ( int id )
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ public OrderDb[] GetAll()
2525
2626 public IQueryable < OrderDb > GetAllAsQueryable ( )
2727 {
28- return this . dataContext . Orders ;
28+ return this . dataContext . Orders
29+ . Include ( c => c . ShipAddress ) ;
2930 }
3031
3132 public OrderDb [ ] GetNOrders ( int numberOfOrdersToRetrieve )
You can’t perform that action at this time.
0 commit comments