public void AddView(int workoutID) { WorkoutView view = new WorkoutView(); view.workoutID = workoutID; view.viewDate = DateTime.Now; DB.WorkoutViews.InsertOnSubmit(view); SubmitChanges(); }
partial void DeleteWorkoutView(WorkoutView instance);
partial void UpdateWorkoutView(WorkoutView instance);
partial void InsertWorkoutView(WorkoutView instance);
private void detach_WorkoutViews(WorkoutView entity) { this.SendPropertyChanging(); entity.Workout = null; }
private void attach_WorkoutViews(WorkoutView entity) { this.SendPropertyChanging(); entity.Workout = this; }