Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BlogPost
- {
- public int Id { get; set; }
- public string Title { get; set; }
- public string Content { get; set; }
- public ICollection<Tag> Tags { get; set; } = new List<Tag>();
- public DateTime DateTime { get; set; }
- public ICollection<PostComment> PostComments { get; set; } = new List<PostComment>();
- }
- public class Tag
- {
- public int Id { get; set; }
- public int ParentPostId { get; set; }
- public BlogPost ParentPost { get; set; }
- public string TagWord { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement