I am struggling with mappings for the following sql tables
|Post | |PostRelation |
|------------------| |-----------------|
|PostId |1--------*|ParentPostId |
|---other stuff--- |1--------*|ChildPostId |
| | |RelationType |
Ideally Id like a property on post called relatedPosts as
Dictionary <RelationType,IList<Post>>
But at the minute Id just settle for a property on post with an
IList<PostRelation>.
I successfully used a many to many to get related posts, but this method loses the addtional data.
Any suggestions??