/// <summary> /// Deprecated Method for adding a new object to the ArticleComments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToArticleComments(ArticleComment articleComment) { base.AddObject("ArticleComments", articleComment); }
/// <summary> /// Create a new ArticleComment object. /// </summary> /// <param name="articleId">Initial value of the ArticleId property.</param> /// <param name="commentId">Initial value of the CommentId property.</param> /// <param name="commentName">Initial value of the CommentName property.</param> /// <param name="commentEmail">Initial value of the CommentEmail property.</param> /// <param name="commentText">Initial value of the CommentText property.</param> public static ArticleComment CreateArticleComment(global::System.Int32 articleId, global::System.Int32 commentId, global::System.String commentName, global::System.String commentEmail, global::System.String commentText) { ArticleComment articleComment = new ArticleComment(); articleComment.ArticleId = articleId; articleComment.CommentId = commentId; articleComment.CommentName = commentName; articleComment.CommentEmail = commentEmail; articleComment.CommentText = commentText; return articleComment; }