/// <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); }
/// <summary> /// Create a new film object. /// </summary> /// <param name="film_id">Initial value of the film_id property.</param> /// <param name="title">Initial value of the title property.</param> /// <param name="language_id">Initial value of the language_id property.</param> /// <param name="rental_duration">Initial value of the rental_duration property.</param> /// <param name="rental_rate">Initial value of the rental_rate property.</param> /// <param name="replacement_cost">Initial value of the replacement_cost property.</param> /// <param name="last_update">Initial value of the last_update property.</param> public static film Createfilm(global::System.Int32 film_id, global::System.String title, global::System.Byte language_id, global::System.Byte rental_duration, global::System.Decimal rental_rate, global::System.Decimal replacement_cost, global::System.DateTime last_update) { film film = new film(); film.film_id = film_id; film.title = title; film.language_id = language_id; film.rental_duration = rental_duration; film.rental_rate = rental_rate; film.replacement_cost = replacement_cost; film.last_update = last_update; return film; }