MediaPortal.Plugins.MovingPictures.Database.DBWatchedHistory.AddWatchedHistory C# (CSharp) 메소드

AddWatchedHistory() 공개 정적인 메소드

public static AddWatchedHistory ( DBMovieInfo movie, DBUser user ) : void
movie DBMovieInfo
user DBUser
리턴 void
        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();
        }
DBWatchedHistory