Exemplo n.º 1
0
 /// <summary>
 /// Create a new Article object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="publicationDate">Initial value of the PublicationDate property.</param>
 /// <param name="body">Initial value of the Body property.</param>
 /// <param name="posterUserID">Initial value of the PosterUserID property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="commentsFrozen">Initial value of the CommentsFrozen property.</param>
 public static Article CreateArticle(global::System.Int64 id, global::System.DateTime publicationDate, global::System.String body, global::System.Int64 posterUserID, global::System.DateTime createDate, global::System.Boolean commentsFrozen)
 {
     Article article = new Article();
     article.ID = id;
     article.PublicationDate = publicationDate;
     article.Body = body;
     article.PosterUserID = posterUserID;
     article.CreateDate = createDate;
     article.CommentsFrozen = commentsFrozen;
     return article;
 }
Exemplo n.º 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);
 }