Пример #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);
 }
Пример #2
0
 /// <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="text">Initial value of the text property.</param>
 public static News CreateNews(global::System.Int32 id, global::System.String date, global::System.String text)
 {
     News news = new News();
     news.id = id;
     news.date = date;
     news.text = text;
     return news;
 }