public static void LoadCarData(Int16 teamId, Int16 carId) { INFATI.AdjustLog(teamId, carId); INFATILoader.DBLoader(carId, INFATI.ReadLog(teamId, carId)); DBController dbc = new DBController(); List<TemporalInformation> datapoints = dbc.GetTimestampsByCarId(carId); dbc.Close(); Console.WriteLine("Found " + datapoints.Count + " gps-entries for car " + carId); List<INFATITrip> trips = TripCalculator.CalculateTripsByCarId(carId); Console.WriteLine("Found " + trips.Count + " trips for car " + carId); dbc = new DBController(); foreach (INFATITrip trip in trips) { dbc.InsertTripAndUpdateFactTable(trip); } dbc.Close(); }