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