Entity Class Specification(Basic)

This document serves to identify all Entities in the Multi-tenant blogging system.

Blog
- There can be one or more Blogs within the system.
- A Blog is represented in the Data Layer as Blog.cs with the following properties:
- Id, Title, IsActive, Posts(IList)

Post Category
- There can be one or more Post Categories related to one Blog within the system. A Post Category is related to a Blog via BlogId. Each Blog may only contain or have viewable it's own Post Categories where there is no sharing of Post Categories between other Blogs within the system. There can only be one level of Post Categories.
- A Post Category is represented in the Data Layer as PostCategory.cs with the following properties:
- Id, Name, BlogId, Posts(IList)

Relationship: one to many

Post
- There can be one or more Posts related to one Blog within the system. A Post is related to a Blog via BlogId. A Post Category is related to a Post via PostCategoryId.
- A Post is represented in the Data Layer as Post.cs with the following properties:
- ID, Title, Body, BlogId, PostCategoryId, PostComments(IList), AllowComments

Relationship: one(Blog) to many(Post)

Comment
- There can be one or more Comments related to a Post within the system.
- A Comment is represented in the Data Layer as PostComment.cs with the following properties:
- ID, Author, Email, CreatedOn, PostId, Body

Relationship: one(Post) to many(Comment)

Tag
- There can be one or more Tags related to a Post within the system. Tags are shared across Blogs within the system.
- A Tag is represented in the Data Layer as Tag.cs and PostPostTag.cs as map with the following properties:
- ID, Name, Posts(IList)

- PostPostTag.cs
- TagId, PostId

Relationship: Many(Post) to many(Tag)

Last edited Aug 19, 2008 at 12:39 AM by haighis, version 1

Comments

No comments yet.