示例#1
0
 /// <summary>
 /// Create a new Article object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="createdAt">Initial value of the CreatedAt property.</param>
 public static Article CreateArticle(global::System.Int32 id, global::System.String title, global::System.DateTime createdAt)
 {
     Article article = new Article();
     article.Id = id;
     article.Title = title;
     article.CreatedAt = createdAt;
     return article;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Articles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToArticles(Article article)
 {
     base.AddObject("Articles", article);
 }