Ejemplo n.º 1
0
        private static void DBLoader(Int16 carId, List<INFATIEntry> entries)
        {
            DBController dbc = new DBController();

            //CarInformation
            dbc.AddCarInformation(carId);

            foreach (INFATIEntry entry in entries) {
                entry.CarId = carId;
                //TemporalInformation
                //Handled in DBController

                //QualityInformation
                entry.QualityId = dbc.GetQualityInformationIdBySatHdop(entry.Sat, entry.Hdop);

                //SegmentInformation
                dbc.AddINFATIEntry(entry);
            }

            dbc.Close();
        }