Created
March 2, 2010 16:39
-
-
Save scottwater/319648 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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