Пример #1
0
 private void FullFillDBWithRooms()
 {
     IRoom room = new RoomDBModel();;
     using (DataBaseConnector dbService = new DataBaseConnector())
     {
         for (int i = 0; i < 3; i++)
         {
             for (int j = 0; j < 12; j++)
             {
                 room.UUID = Guid.NewGuid().ToString();
                 room.RoomNumber = (i + 1) + "-" + (j + 1);
                 dbService.HandleRoomsTable(room, null, RecordActions.Inserted);
             }
         }
         dbService.SaveChanges();
     }
 }