Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class Forum
{
public ObjectId Id{get;set;}
public string Name{get;set;}
//no reference to all the posts
}
public class Thread
{
public ObjectId Id{get;set;}
public string Title{get;set;}
public string Body{get;set;}
public IList<Reply> Replies{get;set;}
public ObjectId ForumId{get;set;}
}
public class Reply
{
public ObjectId Id{get;set;}
public string Body{get;set;}
public ObjectId User_Id{get;set;}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.