Advertisement
Guest User

Untitled

a guest
May 18th, 2015
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1.     public class BlogPost
  2.     {
  3.         public int Id { get; set; }
  4.         public string Title { get; set; }
  5.         public string Content { get; set; }
  6.         public ICollection<Tag> Tags { get; set; } = new List<Tag>();
  7.         public DateTime DateTime { get; set; }
  8.         public ICollection<PostComment> PostComments { get; set; } = new List<PostComment>();
  9.     }
  10.     public class Tag
  11.     {
  12.         public int Id { get; set; }
  13.         public int ParentPostId { get; set; }
  14.         public BlogPost ParentPost { get; set; }
  15.         public string TagWord { get; set; }
  16.  
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement