/// <summary> /// Deprecated Method for adding a new object to the Movies EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMovies(Movie movie) { base.AddObject("Movies", movie); }
/// <summary> /// Create a new Movie object. /// </summary> /// <param name="movieID">Initial value of the MovieID property.</param> /// <param name="title">Initial value of the Title property.</param> /// <param name="year">Initial value of the Year property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="genreID">Initial value of the GenreID property.</param> public static Movie CreateMovie(global::System.Int32 movieID, global::System.String title, global::System.String year, global::System.String description, global::System.Int32 genreID) { Movie movie = new Movie(); movie.MovieID = movieID; movie.Title = title; movie.Year = year; movie.Description = description; movie.GenreID = genreID; return movie; }