eagerly load the FoodPlace.City and FoodPlace.City.Country

This commit is contained in:
Andreas Zweili 2018-07-29 12:14:20 +02:00
parent f616e72f82
commit d2687f363b
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@ namespace Server.DB
return ctx.PatientAtFoodPlaces
.Include("Patient")
.Include("FoodPlace")
.Include("FoodPlace.City")
.Include("FoodPlace.City.Country")
.ToList();
}
}