/// <summary> /// Deprecated Method for adding a new object to the News EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToNews(News news) { base.AddObject("News", news); }
/// <summary> /// Create a new News object. /// </summary> /// <param name="n_id">Initial value of the n_id property.</param> /// <param name="n_date">Initial value of the n_date property.</param> /// <param name="n_text">Initial value of the n_text property.</param> /// <param name="n_title">Initial value of the n_title property.</param> /// <param name="l_id">Initial value of the l_id property.</param> public static News CreateNews(global::System.Int32 n_id, global::System.DateTime n_date, global::System.String n_text, global::System.String n_title, global::System.Int32 l_id) { News news = new News(); news.n_id = n_id; news.n_date = n_date; news.n_text = n_text; news.n_title = n_title; news.l_id = l_id; return news; }