/// <summary>
 /// Populate Subscriber data
 /// </summary>
 /// <param name="dr">
 /// rowset for query
 /// </param>
 /// <param name="colnbr">
 /// dictionary mapping column labels to numbers
 /// </param>
 public TripsBySubscriberRow(TripsByWeekdayRow weekday, DataRow dr, Dictionary <string, int> colnbr)
 {
     Weekday    = weekday;
     Subscriber = new SubscriberDimension(dr, colnbr);
     Bikes      = new BikesMeasure(dr, colnbr);
     TripHours  = new TripsByHourList();
     TripHours.GetData(this);
 }
 public TripsByWeekdayRow(TripsByDistDurCatRow distanceDurationCategory, DataRow dr, Dictionary <string, int> colnbr)
 {
     DistanceDurationCategory = distanceDurationCategory;
     WeekdayName    = new WeekdayNameDimension(dr, colnbr);
     Bikes          = new BikesMeasure(dr, colnbr);
     SubscriberList = new TripsBySubscriberList();
     SubscriberList.GetData(this);
 }
        /// <summary>
        /// Constructor for row
        /// </summary>
        /// <param name="dr">
        /// rowset for record
        /// </param>
        /// <param name="colnbr">
        /// dictionary mapping column names to numbers
        /// </param>
        public TripsByDistDurCatRow(DataRow dr, Dictionary <string, int> colnbr)
        {
            DistanceCategory = new DistanceCategoryDimension(dr, colnbr);
            DurationCategory = new DurationCategoryDimension(dr, colnbr);
            DistanceQtrMi    = new DistanceQtrMileDimension(dr, colnbr);
            Bikes            = new BikesMeasure(dr, colnbr);

            WeekdayList = new TripsByWeekdayList();
            WeekdayList.GetData(this);
        }
 /// <summary>
 /// Constructor for hour record
 /// </summary>
 /// <param name="dr">
 /// Dataset row
 /// </param>
 /// <param name="colnbr">
 /// Dictionary of column headings in dataset
 /// </param>
 public TripsByHourRow(DataRow dr, Dictionary <string, int> colnbr)
 {
     Hour2OfDay = new Hour2OfDayDimension(dr, colnbr);
     Bikes      = new BikesMeasure(dr, colnbr);
 }