eagerly load the FoodPlace.City and FoodPlace.City.Country
This commit is contained in:
parent
f616e72f82
commit
d2687f363b
|
@ -15,6 +15,8 @@ namespace Server.DB
|
|||
return ctx.PatientAtFoodPlaces
|
||||
.Include("Patient")
|
||||
.Include("FoodPlace")
|
||||
.Include("FoodPlace.City")
|
||||
.Include("FoodPlace.City.Country")
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue