Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the News EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToNews(News news)
 {
     base.AddObject("News", news);
 }
Ejemplo n.º 2
0
 /// <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;
 }