Skip to content

Instantly share code, notes, and snippets.

@scottwater
Created March 2, 2010 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottwater/319648 to your computer and use it in GitHub Desktop.
Save scottwater/319648 to your computer and use it in GitHub Desktop.
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