/// <summary> /// Deprecated Method for adding a new object to the Films EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFilms(Film film) { base.AddObject("Films", film); }
public void AddFilm(Film film) { movieEntities.Films.AddObject(film); }
/// <summary> /// Create a new Film object. /// </summary> /// <param name="filmId">Initial value of the FilmId property.</param> /// <param name="name">Initial value of the Name property.</param> public static Film CreateFilm(global::System.Int32 filmId, global::System.String name) { Film film = new Film(); film.FilmId = filmId; film.Name = name; return film; }