Inheritance: MovingPicturesDBTable
        public static void AddWatchedHistory(DBMovieInfo movie, DBUser user)
        {
            DBWatchedHistory history = new DBWatchedHistory();
            history.DateWatched = DateTime.Now;
            history.Movie = movie;
            history.User = user;

            movie.WatchedHistory.Add(history);
            history.Commit();
            movie.Commit();
        }
Exemple #2
0
        public static void AddWatchedHistory(DBMovieInfo movie, DBUser user)
        {
            DBWatchedHistory history = new DBWatchedHistory();

            history.DateWatched = DateTime.Now;
            history.Movie       = movie;
            history.User        = user;

            movie.WatchedHistory.Add(history);
            history.Commit();
            movie.Commit();
        }