/// <summary> /// Create a new Comment object. /// </summary> /// <param name="commentId">Initial value of the commentId property.</param> /// <param name="txt">Initial value of the txt property.</param> /// <param name="addDate">Initial value of the addDate property.</param> /// <param name="productId">Initial value of the productId property.</param> /// <param name="userProfileId">Initial value of the userProfileId property.</param> public static Comment CreateComment(global::System.Int64 commentId, global::System.String txt, global::System.DateTime addDate, global::System.Int64 productId, global::System.Int64 userProfileId) { Comment comment = new Comment(); comment.commentId = commentId; comment.txt = txt; comment.addDate = addDate; comment.productId = productId; comment.userProfileId = userProfileId; return comment; }
/// <summary> /// Deprecated Method for adding a new object to the Comment EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToComment(Comment comment) { base.AddObject("Comment", comment); }