상속: 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();
        }
예제 #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();
        }