示例#1
0
 public TablesMapGenerator(int RecId)
 {
     Tables      = new List <Table>();
     _tablesMaps = null;
     _recId      = RecId;
     using (ProjetSGBDEntities context = new ProjetSGBDEntities()) {
         _clients = context.GetReservation(RecId).Where(res => res.IsValid == true).ToList();
         _nbSeats = context.Reception.Where(rec => rec.ReceptionId == RecId).First().SeatsPerTable;
     }
 }