public void LogMovie(Movie movie) { var movieLog = new MovieLog { MovieID = movie.ID, Rank = movie.Rank, LoggedDate = DateTime.Now }; db.MovieLogs.InsertOnSubmit(movieLog); }
private void detach_MovieLogs(MovieLog entity) { this.SendPropertyChanging(); entity.Movie = null; }
private void attach_MovieLogs(MovieLog entity) { this.SendPropertyChanging(); entity.Movie = this; }
partial void DeleteMovieLog(MovieLog instance);
partial void UpdateMovieLog(MovieLog instance);
partial void InsertMovieLog(MovieLog instance);