/// <summary> /// Create a new Movie object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="shooting">Initial value of the Shooting property.</param> public static Movie CreateMovie(global::System.Int32 id, global::System.String name, Location shooting) { Movie movie = new Movie(); movie.Id = id; movie.Name = name; movie.Shooting = StructuralObject.VerifyComplexObjectIsNotNull(shooting, "Shooting"); return movie; }
/// <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); }