//----------------------------------------------------------------------------------------
        // Loading
        //----------------------------------------------------------------------------------------

        public void Load(DBTables.Match.Row row)
        {
            FmsMatchId          = row.FMSMatchId;
            PlayNumber          = row.PlayNumber.NonNullValue;
            FieldType           = row.FieldType.NonNullValue;
            InitialPreStartTime = row.InitialPrestartTime.DateTimeOffset;
            FinalPreStartTime   = row.FinalPreStartTime.DateTimeOffset;
            PreStartCount       = row.PreStartCount.NonNullValue;

            AutoEndTime     = row.AutoEndTime.DateTimeOffset;
            TeleopStartTime = row.TeleopStartTime.DateTimeOffset;
            PostMatchTime   = row.PostMatchTime.DateTimeOffset;
            CancelMatchTime = row.CancelMatchTime.DateTimeOffset;
            CycleTime       = row.CycleTime.DateTimeOffset;

            RedScore      = row.RedScore.NonNullValue;
            RedPenalty    = row.RedPenalty.NonNullValue;
            BlueScore     = row.BlueScore.NonNullValue;
            BluePenalty   = row.BluePenalty.NonNullValue;
            RedAutoScore  = row.RedAutoScore.NonNullValue;
            BlueAutoScore = row.BlueAutoScore.NonNullValue;
            ScoreDetails  = row.ScoreDetails.Value;

            HeadRefReview = row.HeadRefReview.NonNullValue;
            VideoUrl      = row.VideoUrl.Value;

            CreatedBy  = row.CreatedBy.Value;
            ModifiedBy = row.ModifiedBy.Value;

            // FMSEventId.Value = row.FMSEventId.Value; Don't load: our event id comes from our Scheduled guy
            RowVersion.Value = row.RowVersion.Value;
        }
 public MatchPlayedThisEvent(Database db, DBTables.Match.Row row) : base(db, row.FMSEventId, row.FMSScheduleDetailId)
 {
     Initialize();
     Load(row);
 }