/// <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="id">Initial value of the Id property.</param> /// <param name="date">Initial value of the Date property.</param> /// <param name="header">Initial value of the Header property.</param> /// <param name="briefly">Initial value of the Briefly property.</param> /// <param name="body">Initial value of the Body property.</param> public static News CreateNews(global::System.Int32 id, global::System.DateTime date, global::System.String header, global::System.String briefly, global::System.String body) { News news = new News(); news.Id = id; news.Date = date; news.Header = header; news.Briefly = briefly; news.Body = body; return news; }