Пример #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Comments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToComments(Comment comment)
 {
     base.AddObject("Comments", comment);
 }
Пример #2
0
 /// <summary>
 /// Create a new Comment object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="article_id">Initial value of the Article_id property.</param>
 /// <param name="text">Initial value of the text property.</param>
 /// <param name="user_name">Initial value of the User_name property.</param>
 /// <param name="pub_date">Initial value of the Pub_date property.</param>
 public static Comment CreateComment(global::System.Int32 id, global::System.Int32 article_id, global::System.String text, global::System.String user_name, global::System.DateTime pub_date)
 {
     Comment comment = new Comment();
     comment.Id = id;
     comment.Article_id = article_id;
     comment.text = text;
     comment.User_name = user_name;
     comment.Pub_date = pub_date;
     return comment;
 }