public void AddRun(GarminUnit garmin, Run run) { var runs = new Runs() { FirstLapIndex = run.FirstLapIndex, LastLapIndex = run.LastLapIndex, SportType = (int)run.SportType, ProgramType = run.ProgramType, MultiSport = (int)run.MultiSport, // QuickWorkout = (int) run.QuickWorkout, // Workout = (int) run.Workout, // VirtualPartner = (int) run.VirtualPartner }; database.Runs.InsertOnSubmit(runs); database.SubmitChanges(); }
public void AddRun(GarminUnit garmin, Run run) { var runs = new Runs() { FirstLapIndex = run.FirstLapIndex, LastLapIndex = run.LastLapIndex, SportType = (int) run.SportType, ProgramType = run.ProgramType, MultiSport = (int) run.MultiSport, // QuickWorkout = (int) run.QuickWorkout, // Workout = (int) run.Workout, // VirtualPartner = (int) run.VirtualPartner }; database.Runs.InsertOnSubmit(runs); database.SubmitChanges(); }