/// <summary> /// Deprecated Method for adding a new object to the Comments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToComments(Comment comment) { base.AddObject("Comments", comment); }
/// <summary> /// Create a new Comment object. /// </summary> /// <param name="comment_id">Initial value of the comment_id property.</param> /// <param name="comment1">Initial value of the comment1 property.</param> /// <param name="post_id">Initial value of the post_id property.</param> /// <param name="author">Initial value of the author property.</param> /// <param name="date">Initial value of the date property.</param> public static Comment CreateComment(global::System.String comment_id, global::System.String comment1, global::System.Int32 post_id, global::System.String author, global::System.DateTime date) { Comment comment = new Comment(); comment.comment_id = comment_id; comment.comment1 = comment1; comment.post_id = post_id; comment.author = author; comment.date = date; return comment; }