I have a model that looks like this:
class Comment { public string ID { get; set; } public string ArticleType { get; set; } public string ArticleID { get; set; } public string Body { get; set; } public DateTime DateCreated { get; set; } public string UserID { get; set; } }
I am creating an application for storing comments about other materials in our application. For example, if the comment refers to a product, ArticleType may be a "product" and ItemID will be the identifier of the product ...
I am going to use mongodb to store this data
I want to be able to respond to a comment and store the answer hierarchically Should I store the list in a doc comment?
I read this article by Ash Ashton. What makes sense for things like a blog post, and his comments ...
However, in my model, “response comments” refer directly to the parent comment.
Response comments may also contain answers, making them x levels ...? Could this be due to the scale of the query type of type reduction?
Edit:
"article" is probably bad terminology. ArticleType and ArticleId were just a way to link a comment to a specific “thing” - for example, if we were to comment on this question, articleType could be stackOverflowQuestion and id would be 5144273
If we commented on the ebay auction, we could have articleType as ebay and articleId as 1234902493984 (item number)
Hope this makes sense ...
Alex
source share