Esempio n. 1
0
 private Flat(HouseApiDbContext context)
 {
     Residents     = context.Residents.Where(r => r.FlatId == Id).ToList();
     ResidentCount = Residents.Count;
 }
Esempio n. 2
0
 private House(HouseApiDbContext context)
 {
     Flats = context.Flats.Where(f => f.HouseId == Id).ToList();
 }