/// <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="newsID">Initial value of the NewsID property.</param> public static News CreateNews(global::System.Int32 newsID) { News news = new News(); news.NewsID = newsID; return news; }